diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-08-04 15:47:53 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-08-04 23:28:17 +0200 |
commit | 48a3d6b85e3c2858c281d5f258fcf2120ca84265 (patch) | |
tree | 1f3d2b1f80d4033038b1c9ad1dbbb5ce18f3ff43 /vcl/opengl | |
parent | 5eb43d74e1aea8eebb67e2d9e98335a1c5d81248 (diff) |
loplugin:simplifypointertobool (clang-cl)
Change-Id: I6512e6e4217ef9084c74e46e3b4f1e8defbd1bec
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100108
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'vcl/opengl')
-rw-r--r-- | vcl/opengl/win/winlayout.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/opengl/win/winlayout.cxx b/vcl/opengl/win/winlayout.cxx index 59bf12c25c8c..c8ead510dac8 100644 --- a/vcl/opengl/win/winlayout.cxx +++ b/vcl/opengl/win/winlayout.cxx @@ -13,7 +13,7 @@ bool OpenGLGlobalWinGlyphCache::AllocateTexture(WinGlyphDrawElement& rElement, CompatibleDC* dc) { - assert(rElement.maTexture.get() == nullptr); + assert(!rElement.maTexture); assert(dynamic_cast<OpenGLCompatibleDC*>(dc)); OpenGLCompatibleDC* odc = static_cast<OpenGLCompatibleDC*>(dc); OpenGLCompatibleDC::Texture* texture = new OpenGLCompatibleDC::Texture; |