diff options
| author | Neil <nyamatongwe@gmail.com> | 2014-10-19 17:54:02 +1100 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2014-10-19 17:54:02 +1100 |
| commit | 687b1f2afe8d491434ee0695ff902397e641250a (patch) | |
| tree | 5535087cdfe90c15f40d318726d3140cc394e1a8 | |
| parent | e0f2334c841692b6a4ebb2b1b5efea9cc422724d (diff) | |
| download | scintilla-mirror-687b1f2afe8d491434ee0695ff902397e641250a.tar.gz | |
Avoid warning about assiging pointer to integer.
| -rw-r--r-- | gtk/PlatGTK.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/PlatGTK.cxx b/gtk/PlatGTK.cxx index c1d7ac7ae..1445ac130 100644 --- a/gtk/PlatGTK.cxx +++ b/gtk/PlatGTK.cxx @@ -708,7 +708,7 @@ void SurfaceImpl::FillRectangle(PRectangle rc, ColourDesired back) { void SurfaceImpl::FillRectangle(PRectangle rc, Surface &surfacePattern) { SurfaceImpl &surfi = static_cast<SurfaceImpl &>(surfacePattern); - bool canDraw = surfi.psurf; + bool canDraw = surfi.psurf != NULL; if (canDraw) { PLATFORM_ASSERT(context); // Tile pattern over rectangle @@ -842,7 +842,7 @@ void SurfaceImpl::Ellipse(PRectangle rc, ColourDesired fore, ColourDesired back) void SurfaceImpl::Copy(PRectangle rc, Point from, Surface &surfaceSource) { SurfaceImpl &surfi = static_cast<SurfaceImpl &>(surfaceSource); - bool canDraw = surfi.psurf; + bool canDraw = surfi.psurf != NULL; if (canDraw) { PLATFORM_ASSERT(context); cairo_set_source_surface(context, surfi.psurf, |
