[Libreoffice-commits] core.git: libreofficekit/source

Stephan Bergmann sbergman at redhat.com
Mon Jan 11 04:24:58 PST 2016


 libreofficekit/source/gtk/lokdocview.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit ac1f0b59043a02e4d430cade3cc5b8b069feed87
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Mon Jan 11 13:24:33 2016 +0100

    Silence loplugin:implicitboolconversion between bool and gboolean
    
    Change-Id: I83ce360622eea0fb805833650c0d2126bcd5d8db

diff --git a/libreofficekit/source/gtk/lokdocview.cxx b/libreofficekit/source/gtk/lokdocview.cxx
index 383f35f..87b6ca0 100644
--- a/libreofficekit/source/gtk/lokdocview.cxx
+++ b/libreofficekit/source/gtk/lokdocview.cxx
@@ -2503,12 +2503,12 @@ lok_doc_view_set_zoom (LOKDocView* pDocView, float fZoom)
     // set properties to indicate if view can be further zoomed in/out
     bool bCanZoomIn  = priv->m_fZoom < MAX_ZOOM;
     bool bCanZoomOut = priv->m_fZoom > MIN_ZOOM;
-    if (bCanZoomIn != priv->m_bCanZoomIn)
+    if (bCanZoomIn != bool(priv->m_bCanZoomIn))
     {
         priv->m_bCanZoomIn = bCanZoomIn;
         g_object_notify_by_pspec(G_OBJECT(pDocView), properties[PROP_CAN_ZOOM_IN]);
     }
-    if (bCanZoomOut != priv->m_bCanZoomOut)
+    if (bCanZoomOut != bool(priv->m_bCanZoomOut))
     {
         priv->m_bCanZoomOut = bCanZoomOut;
         g_object_notify_by_pspec(G_OBJECT(pDocView), properties[PROP_CAN_ZOOM_OUT]);


More information about the Libreoffice-commits mailing list