135360
From 19770dc907fb14c29c954aba399f906ee0c44914 Mon Sep 17 00:00:00 2001
135360
From: Stephan Bergmann <sbergman@redhat.com>
135360
Date: Fri, 13 Nov 2015 10:41:32 +0100
135360
Subject: [PATCH 320/398] loplugin:nullptr
135360
135360
Change-Id: Iaf779157b97e4d3a3a449cc7f17e4d5c533955f0
135360
(cherry picked from commit c6c8af5ef46e2178e4b9abcd95f76c8df2db2732)
135360
---
135360
 libreofficekit/source/gtk/lokdocview.cxx | 8 ++++----
135360
 1 file changed, 4 insertions(+), 4 deletions(-)
135360
135360
diff --git a/libreofficekit/source/gtk/lokdocview.cxx b/libreofficekit/source/gtk/lokdocview.cxx
135360
index 9d852351262e..47ada280dde3 100644
135360
--- a/libreofficekit/source/gtk/lokdocview.cxx
135360
+++ b/libreofficekit/source/gtk/lokdocview.cxx
135360
@@ -2269,7 +2269,7 @@ static void lok_doc_view_class_init (LOKDocViewClass* pClass)
135360
                      G_TYPE_FROM_CLASS(pGObjectClass),
135360
                      G_SIGNAL_RUN_FIRST,
135360
                      0,
135360
-                     NULL, NULL,
135360
+                     nullptr, nullptr,
135360
                      g_cclosure_marshal_VOID__STRING,
135360
                      G_TYPE_NONE, 1,
135360
                      G_TYPE_STRING);
135360
@@ -2346,7 +2346,7 @@ SAL_DLLPUBLIC_EXPORT void
135360
 lok_doc_view_set_zoom (LOKDocView* pDocView, float fZoom)
135360
 {
135360
     LOKDocViewPrivate& priv = getPrivate(pDocView);
135360
-    GError* error = NULL;
135360
+    GError* error = nullptr;
135360
 
135360
     priv->m_fZoom = fZoom;
135360
     long nDocumentWidthPixels = twipToPixel(priv->m_nDocumentWidthTwips, fZoom);
135360
@@ -2361,7 +2361,7 @@ lok_doc_view_set_zoom (LOKDocView* pDocView, float fZoom)
135360
                                 nDocumentHeightPixels);
135360
 
135360
     // Update the client's view size
135360
-    GTask* task = g_task_new(pDocView, NULL, NULL, NULL);
135360
+    GTask* task = g_task_new(pDocView, nullptr, nullptr, nullptr);
135360
     LOEvent* pLOEvent = new LOEvent(LOK_SET_CLIENT_ZOOM);
135360
     pLOEvent->m_nTilePixelWidth = nTileSizePixels;
135360
     pLOEvent->m_nTilePixelHeight = nTileSizePixels;
135360
@@ -2370,7 +2370,7 @@ lok_doc_view_set_zoom (LOKDocView* pDocView, float fZoom)
135360
     g_task_set_task_data(task, pLOEvent, LOEvent::destroy);
135360
 
135360
     g_thread_pool_push(priv->lokThreadPool, g_object_ref(task), &error);
135360
-    if (error != NULL)
135360
+    if (error != nullptr)
135360
     {
135360
         g_warning("Unable to call LOK_SET_CLIENT_ZOOM: %s", error->message);
135360
         g_clear_error(&error);
135360
-- 
135360
2.12.0
135360