summaryrefslogtreecommitdiff
path: root/sdext/source/presenter/PresenterScrollBar.cxx
diff options
context:
space:
mode:
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 46f1490e38f3..be498680fafa 100644
--- a/sdext/source/presenter/PresenterScrollBar.cxx
+++ b/sdext/source/presenter/PresenterScrollBar.cxx
@@ -520,7 +520,7 @@ void PresenterScrollBar::UpdateWidthOrHeight (
sal_Int32& rSize,
const SharedBitmapDescriptor& rpDescriptor)
{
- if (rpDescriptor.get() != nullptr)
+ if (rpDescriptor)
{
Reference<rendering::XBitmap> xBitmap (rpDescriptor->GetNormalBitmap());
if (xBitmap.is())
@@ -620,7 +620,7 @@ void PresenterVerticalScrollBar::UpdateBorders()
const awt::Rectangle aWindowBox (mxWindow->getPosSize());
double nBottom = aWindowBox.Height;
- if (mpNextButtonDescriptor.get() != nullptr)
+ if (mpNextButtonDescriptor)
{
Reference<rendering::XBitmap> xBitmap (mpNextButtonDescriptor->GetNormalBitmap());
if (xBitmap.is())
@@ -631,7 +631,7 @@ void PresenterVerticalScrollBar::UpdateBorders()
nBottom -= aSize.Height + gnScrollBarGap;
}
}
- if (mpPrevButtonDescriptor.get() != nullptr)
+ if (mpPrevButtonDescriptor)
{
Reference<rendering::XBitmap> xBitmap (mpPrevButtonDescriptor->GetNormalBitmap());
if (xBitmap.is())