summaryrefslogtreecommitdiff
path: root/sdext/source/presenter/PresenterScrollBar.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-06-03 10:52:46 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-06-04 08:23:43 +0200
commitb83ac35bf46ecbebf7f806235eca38a71e521c32 (patch)
tree660cb00ba4045c7238e9d43176196339ecf901f0 /sdext/source/presenter/PresenterScrollBar.cxx
parent7b905c8f1d520ae1aaf4bd2fbb6a3325b404ea95 (diff)
loplugin:simplifypointertobool improve (2)
to look for the x.get() == null pattern, which can be simplified to !x Change-Id: I0eddf93257ab53ab31949961d7c33ac2dd7288ea Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95400 Tested-by: Noel Grandin <noel.grandin@collabora.co.uk> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sdext/source/presenter/PresenterScrollBar.cxx')
-rw-r--r--sdext/source/presenter/PresenterScrollBar.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sdext/source/presenter/PresenterScrollBar.cxx b/sdext/source/presenter/PresenterScrollBar.cxx
index be498680fafa..cb3efd61aed5 100644
--- a/sdext/source/presenter/PresenterScrollBar.cxx
+++ b/sdext/source/presenter/PresenterScrollBar.cxx
@@ -440,7 +440,7 @@ void PresenterScrollBar::Repaint (
void PresenterScrollBar::PaintBackground(
const css::awt::Rectangle& rUpdateBox)
{
- if (mpBackgroundBitmap.get() == nullptr)
+ if (!mpBackgroundBitmap)
return;
const awt::Rectangle aWindowBox (mxWindow->getPosSize());
@@ -537,7 +537,7 @@ css::uno::Reference<css::rendering::XBitmap> PresenterScrollBar::GetBitmap (
const Area eArea,
const SharedBitmapDescriptor& rpBitmaps) const
{
- if (rpBitmaps.get() == nullptr)
+ if (!rpBitmaps)
return nullptr;
else
return rpBitmaps->GetBitmap(GetBitmapMode(eArea));
@@ -797,7 +797,7 @@ void PresenterScrollBar::MousePressRepeater::SetMouseArea(const PresenterScrollB
void PresenterScrollBar::MousePressRepeater::Callback ()
{
- if (mpScrollBar.get() == nullptr)
+ if (!mpScrollBar)
{
Stop();
return;