diff options
author | Noel <noel.grandin@collabora.co.uk> | 2021-03-26 10:30:34 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-03-26 11:58:03 +0100 |
commit | 83b011b61e941250f8c58ff12c864830fe52f9c0 (patch) | |
tree | dd27bfae50bad8ddb788e54d18504fdcffb910e8 /drawinglayer | |
parent | f3b98808b13e7ec7bfcee9e249175cbb75ee7245 (diff) |
create operator bool for Bitmap
so we can use a more natural syntax than "!!"
Change-Id: I8152a0d3ce37115fc83d332a26725ca1d28d959a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113147
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'drawinglayer')
-rw-r--r-- | drawinglayer/source/texture/texture3d.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drawinglayer/source/texture/texture3d.cxx b/drawinglayer/source/texture/texture3d.cxx index ef53c94d0d10..2c8be33a2086 100644 --- a/drawinglayer/source/texture/texture3d.cxx +++ b/drawinglayer/source/texture/texture3d.cxx @@ -89,7 +89,7 @@ namespace drawinglayer::texture mpReadTransparence = Bitmap::ScopedReadAccess(maTransparence); } - if (!!maBitmap) + if (maBitmap) mpReadBitmap = Bitmap::ScopedReadAccess(maBitmap); SAL_WARN_IF(!mpReadBitmap, "drawinglayer", "GeoTexSvxBitmapEx: Got no read access to Bitmap"); if (mpReadBitmap) |