Kaydet (Commit) 9aa9baa7 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:literaltoboolconversion

Change-Id: I85fa46de5b864369158d047fd3f7c683f10c822f
üst 3a1a5b97
...@@ -67,7 +67,7 @@ void TileBuffer::setInvalid(int x, int y) ...@@ -67,7 +67,7 @@ void TileBuffer::setInvalid(int x, int y)
g_info("Setting tile invalid (%d, %d)", x, y); g_info("Setting tile invalid (%d, %d)", x, y);
if (m_mTiles.find(index) != m_mTiles.end()) if (m_mTiles.find(index) != m_mTiles.end())
{ {
m_mTiles[index].valid = 0; m_mTiles[index].valid = false;
m_mTiles[index].release(); m_mTiles[index].release();
m_mTiles.erase(index); m_mTiles.erase(index);
} }
...@@ -101,7 +101,7 @@ Tile& TileBuffer::getTile(int x, int y, float aZoom) ...@@ -101,7 +101,7 @@ Tile& TileBuffer::getTile(int x, int y, float aZoom)
//create a mapping for it //create a mapping for it
m_mTiles[index].setPixbuf(pPixBuf); m_mTiles[index].setPixbuf(pPixBuf);
m_mTiles[index].valid = 1; m_mTiles[index].valid = true;
} }
return m_mTiles[index]; return m_mTiles[index];
......
...@@ -51,7 +51,7 @@ float twipToPixel(float fInput, float zoom); ...@@ -51,7 +51,7 @@ float twipToPixel(float fInput, float zoom);
class Tile class Tile
{ {
public: public:
Tile() : valid(0) {} Tile() : valid(false) {}
~Tile() { } ~Tile() { }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment