diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-04-24 12:34:53 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-04-24 12:36:31 +0200 |
commit | a9a4d46ce74fc3c4ff1b7399ea6be6ffeeeb8863 (patch) | |
tree | f44261f69c3c6c5cb13095d092ea538a8d47a5e0 /vcl/inc/openglgdiimpl.hxx | |
parent | loplugin:simplifybool (diff) | |
download | core-a9a4d46ce74fc3c4ff1b7399ea6be6ffeeeb8863.tar.gz core-a9a4d46ce74fc3c4ff1b7399ea6be6ffeeeb8863.zip |
loplugin:simplifybool
Change-Id: I8276e8b356ff26241613de64bcd90b5dbcd92f29
Diffstat (limited to 'vcl/inc/openglgdiimpl.hxx')
-rw-r--r-- | vcl/inc/openglgdiimpl.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/inc/openglgdiimpl.hxx b/vcl/inc/openglgdiimpl.hxx index c5a7abcfdb2c..9abc4f975941 100644 --- a/vcl/inc/openglgdiimpl.hxx +++ b/vcl/inc/openglgdiimpl.hxx @@ -115,7 +115,7 @@ public: GLfloat GetHeight() const { return mpProvider ? mpProvider->GetHeight() : 1; } // check whether this instance is used for offscreen rendering - bool IsOffscreen() const { return mpProvider ? mpProvider->IsOffScreen() : true; } + bool IsOffscreen() const { return mpProvider == nullptr || mpProvider->IsOffScreen(); } // operations to do before painting void PreDraw(); |