summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2018-11-04 17:06:47 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2018-11-04 16:57:59 +0100
commit628e96ce1fce194b30a5c2912feb8b7ec0328db0 (patch)
tree7a901d6da7d0dea1da3ac55ebe96fc33fc904150 /sd
parent9d5365f7cacecf92f1f056dce7bb6bbaf9f0cc40 (diff)
tdf#120703 PVS: V547 Expression is always true/false
Change-Id: I3432afca1ee9bf9e8adce1d55d58d57bf1a09cb4 Reviewed-on: https://gerrit.libreoffice.org/62847 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/sidebar/LayoutMenu.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/sd/source/ui/sidebar/LayoutMenu.cxx b/sd/source/ui/sidebar/LayoutMenu.cxx
index 13c554acd919..e0da346e9d6a 100644
--- a/sd/source/ui/sidebar/LayoutMenu.cxx
+++ b/sd/source/ui/sidebar/LayoutMenu.cxx
@@ -383,9 +383,8 @@ void LayoutMenu::AssignLayoutToSelectedSlides (AutoLayout aLayout)
case ViewShell::ST_IMPRESS:
{
DrawViewShell* pDrawViewShell = static_cast<DrawViewShell*>(pMainViewShell);
- if (pDrawViewShell != nullptr)
- if (pDrawViewShell->GetEditMode() == EditMode::MasterPage)
- bMasterPageMode = true;
+ if (pDrawViewShell->GetEditMode() == EditMode::MasterPage)
+ bMasterPageMode = true;
break;
}
default: