diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-09-28 10:01:37 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-09-28 11:28:41 +0200 |
commit | 6c6c1eea82b259c7aec1e0ed5ff86bfd2eb0243f (patch) | |
tree | 87e8ccbbfc4d369e079098eb8be09abf988f1c44 /sw/source/uibase/utlui/content.cxx | |
parent | fc79f23922ccae8b494b31a5dd7bb4767e50c87e (diff) |
loplugin:constmethod in sw
Change-Id: I73c3c6d2165287d2d581a04b23b1d3b48166a488
Reviewed-on: https://gerrit.libreoffice.org/79780
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/uibase/utlui/content.cxx')
-rw-r--r-- | sw/source/uibase/utlui/content.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/uibase/utlui/content.cxx b/sw/source/uibase/utlui/content.cxx index f979bf97d915..d6c6a7d7e9b0 100644 --- a/sw/source/uibase/utlui/content.cxx +++ b/sw/source/uibase/utlui/content.cxx @@ -3619,7 +3619,7 @@ void SwContentTree::EditEntry(SvTreeListEntry const * pEntry, EditEntryMode nMod } } -void SwContentTree::GotoContent(SwContent* pCnt) +void SwContentTree::GotoContent(const SwContent* pCnt) { m_pActiveShell->EnterStdMode(); @@ -3628,7 +3628,7 @@ void SwContentTree::GotoContent(SwContent* pCnt) { case ContentTypeId::OUTLINE : { - m_pActiveShell->GotoOutline(static_cast<SwOutlineContent*>(pCnt)->GetOutlinePos()); + m_pActiveShell->GotoOutline(static_cast<const SwOutlineContent*>(pCnt)->GetOutlinePos()); } break; case ContentTypeId::TABLE : @@ -3657,7 +3657,7 @@ void SwContentTree::GotoContent(SwContent* pCnt) case ContentTypeId::URLFIELD: { if(m_pActiveShell->GotoINetAttr( - *static_cast<SwURLFieldContent*>(pCnt)->GetINetAttr() )) + *static_cast<const SwURLFieldContent*>(pCnt)->GetINetAttr() )) { m_pActiveShell->Right( CRSR_SKIP_CHARS, true, 1, false); m_pActiveShell->SwCursorShell::SelectTextAttr( RES_TXTATR_INETFMT, true ); @@ -3679,7 +3679,7 @@ void SwContentTree::GotoContent(SwContent* pCnt) break; case ContentTypeId::POSTIT: m_pActiveShell->GetView().GetPostItMgr()->AssureStdModeAtShell(); - m_pActiveShell->GotoFormatField(*static_cast<SwPostItContent*>(pCnt)->GetPostIt()); + m_pActiveShell->GotoFormatField(*static_cast<const SwPostItContent*>(pCnt)->GetPostIt()); break; case ContentTypeId::DRAWOBJECT: { |