summaryrefslogtreecommitdiff
path: root/sw/source/uibase
diff options
context:
space:
mode:
authorJochen Nitschke <j.nitschke+logerrit@ok.de>2016-10-02 15:27:56 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-10-03 06:02:44 +0000
commit02981bec24fcbc160ac7e10aed3af6053aa1780a (patch)
tree4a1e2a0a0b916123e62279d263a0da3037e633a8 /sw/source/uibase
parentd0349556c3d045d325d511d8ca4e6ddcac666cf2 (diff)
remove pointer to local
Change-Id: I21cb1e1798d7ca127005fd047d84ff535eb48019 Reviewed-on: https://gerrit.libreoffice.org/29458 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/uibase')
-rw-r--r--sw/source/uibase/app/docsh.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/uibase/app/docsh.cxx b/sw/source/uibase/app/docsh.cxx
index 11a48dacb545..e0d0140a652c 100644
--- a/sw/source/uibase/app/docsh.cxx
+++ b/sw/source/uibase/app/docsh.cxx
@@ -1303,12 +1303,11 @@ void SwDocShell::SetChangeRecording( bool bActivate )
void SwDocShell::SetProtectionPassword( const OUString &rNewPassword )
{
const SfxAllItemSet aSet( GetPool() );
- const SfxItemSet* pArgs = &aSet;
const SfxPoolItem* pItem = nullptr;
IDocumentRedlineAccess& rIDRA = m_pWrtShell->getIDocumentRedlineAccess();
Sequence< sal_Int8 > aPasswd = rIDRA.GetRedlinePassword();
- if (pArgs && SfxItemState::SET == pArgs->GetItemState( FN_REDLINE_PROTECT, false, &pItem )
+ if (SfxItemState::SET == aSet.GetItemState(FN_REDLINE_PROTECT, false, &pItem)
&& static_cast<const SfxBoolItem*>(pItem)->GetValue() == (aPasswd.getLength() > 0))
return;