summaryrefslogtreecommitdiff
path: root/sdext/source/presenter/PresenterTheme.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sdext/source/presenter/PresenterTheme.cxx')
-rw-r--r--sdext/source/presenter/PresenterTheme.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sdext/source/presenter/PresenterTheme.cxx b/sdext/source/presenter/PresenterTheme.cxx
index 2cc7f2efa252..896498ec184c 100644
--- a/sdext/source/presenter/PresenterTheme.cxx
+++ b/sdext/source/presenter/PresenterTheme.cxx
@@ -370,7 +370,7 @@ SharedBitmapDescriptor PresenterTheme::GetBitmap (
if (rsBitmapName == "Background")
{
std::shared_ptr<Theme> pTheme (mpTheme);
- while (pTheme != nullptr && pTheme->mpBackground.get() == nullptr)
+ while (pTheme != nullptr && !pTheme->mpBackground)
pTheme = pTheme->mpParentTheme;
if (pTheme != nullptr)
return pTheme->mpBackground;
@@ -409,7 +409,7 @@ SharedBitmapDescriptor PresenterTheme::GetBitmap (
if (rsBitmapName == "Background")
{
std::shared_ptr<Theme> pTheme (mpTheme);
- while (pTheme != nullptr && pTheme->mpBackground.get() == nullptr)
+ while (pTheme != nullptr && !pTheme->mpBackground)
pTheme = pTheme->mpParentTheme;
if (pTheme != nullptr)
return pTheme->mpBackground;