summaryrefslogtreecommitdiff
path: root/sw/source/uibase
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-03-05 13:44:17 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-03-06 06:47:06 +0100
commita2e3705d8b3b05ae664d54b762d6ff72927d5e48 (patch)
tree6ac31f9c9b419b12dbf065845a6941c143f57e2c /sw/source/uibase
parentf423ac2d3bdba4263f1f41e31e7e2b7715afdd6e (diff)
loplugin:unnecessaryparen improve member expression
Change-Id: I304621018cb1e2a47e478e86df4229bcf2176741 Reviewed-on: https://gerrit.libreoffice.org/68757 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/uibase')
-rw-r--r--sw/source/uibase/app/docsh.cxx2
-rw-r--r--sw/source/uibase/docvw/AnnotationWin2.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/app/docsh.cxx b/sw/source/uibase/app/docsh.cxx
index 13e662feed3b..053209651f01 100644
--- a/sw/source/uibase/app/docsh.cxx
+++ b/sw/source/uibase/app/docsh.cxx
@@ -370,7 +370,7 @@ bool SwDocShell::Save()
SetError(nErr ? nErr : nVBWarning);
SfxViewFrame *const pFrame =
- (m_pWrtShell) ? m_pWrtShell->GetView().GetViewFrame() : nullptr;
+ m_pWrtShell ? m_pWrtShell->GetView().GetViewFrame() : nullptr;
if( pFrame )
{
pFrame->GetBindings().SetState(SfxBoolItem(SID_DOC_MODIFIED, false));
diff --git a/sw/source/uibase/docvw/AnnotationWin2.cxx b/sw/source/uibase/docvw/AnnotationWin2.cxx
index 978482343e81..075c3c5c247a 100644
--- a/sw/source/uibase/docvw/AnnotationWin2.cxx
+++ b/sw/source/uibase/docvw/AnnotationWin2.cxx
@@ -1469,7 +1469,7 @@ void SwAnnotationWin::ChangeSidebarItem( SwSidebarItem const & rSidebarItem )
const bool bAnchorChanged = mpAnchorFrame != rSidebarItem.maLayoutInfo.mpAnchorFrame;
if ( bAnchorChanged )
{
- mrMgr.DisconnectSidebarWinFromFrame( *(mpAnchorFrame), *this );
+ mrMgr.DisconnectSidebarWinFromFrame( *mpAnchorFrame, *this );
}
mrSidebarItem = rSidebarItem;