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 /sd/source/ui/docshell | |
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 'sd/source/ui/docshell')
-rw-r--r-- | sd/source/ui/docshell/docshel2.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/ui/docshell/docshel2.cxx b/sd/source/ui/docshell/docshel2.cxx index bfbb92ab61c5..68bdf0af1f7e 100644 --- a/sd/source/ui/docshell/docshel2.cxx +++ b/sd/source/ui/docshell/docshel2.cxx @@ -262,7 +262,7 @@ BitmapEx DrawDocShell::GetPagePreviewBitmap(SdPage* pPage) BitmapEx aPreview( pVDev->GetBitmapEx( aNullPt, pVDev->GetOutputSizePixel() ) ); - DBG_ASSERT(!!aPreview, "Preview-Bitmap could not be generated"); + DBG_ASSERT(aPreview, "Preview-Bitmap could not be generated"); return aPreview; } |