135360
From d7998a755c226340bfa287bfb5544a61d030f877 Mon Sep 17 00:00:00 2001
135360
From: Stephan Bergmann <sbergman@redhat.com>
135360
Date: Tue, 9 Jun 2015 11:48:12 +0200
135360
Subject: [PATCH 031/398] loplugin:literaltoboolconversion
135360
135360
Change-Id: I85fa46de5b864369158d047fd3f7c683f10c822f
135360
(cherry picked from commit 9aa9baa78852dda5c348eb0abdbef98db3e910ed)
135360
---
135360
 libreofficekit/source/gtk/tilebuffer.cxx | 4 ++--
135360
 libreofficekit/source/gtk/tilebuffer.hxx | 2 +-
135360
 2 files changed, 3 insertions(+), 3 deletions(-)
135360
135360
diff --git a/libreofficekit/source/gtk/tilebuffer.cxx b/libreofficekit/source/gtk/tilebuffer.cxx
135360
index 1d6a8b66ec80..2c0ee90e08d4 100644
135360
--- a/libreofficekit/source/gtk/tilebuffer.cxx
135360
+++ b/libreofficekit/source/gtk/tilebuffer.cxx
135360
@@ -67,7 +67,7 @@ void TileBuffer::setInvalid(int x, int y)
135360
     g_info("Setting tile invalid (%d, %d)", x, y);
135360
     if (m_mTiles.find(index) != m_mTiles.end())
135360
     {
135360
-        m_mTiles[index].valid = 0;
135360
+        m_mTiles[index].valid = false;
135360
         m_mTiles[index].release();
135360
         m_mTiles.erase(index);
135360
     }
135360
@@ -101,7 +101,7 @@ Tile& TileBuffer::getTile(int x, int y, float aZoom)
135360
 
135360
         //create a mapping for it
135360
         m_mTiles[index].setPixbuf(pPixBuf);
135360
-        m_mTiles[index].valid = 1;
135360
+        m_mTiles[index].valid = true;
135360
     }
135360
 
135360
     return m_mTiles[index];
135360
diff --git a/libreofficekit/source/gtk/tilebuffer.hxx b/libreofficekit/source/gtk/tilebuffer.hxx
135360
index b9bf71b950d5..42c6d35b112b 100644
135360
--- a/libreofficekit/source/gtk/tilebuffer.hxx
135360
+++ b/libreofficekit/source/gtk/tilebuffer.hxx
135360
@@ -51,7 +51,7 @@ float twipToPixel(float fInput, float zoom);
135360
 class Tile
135360
 {
135360
  public:
135360
-    Tile() : valid(0) {}
135360
+    Tile() : valid(false) {}
135360
     ~Tile() { }
135360
 
135360
     /**
135360
-- 
135360
2.12.0
135360