diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-08-05 15:20:21 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-08-06 20:13:53 +0200 |
commit | 8ef6be73325dbb6761b247ff187c709ba0f81bfb (patch) | |
tree | f7f066cf9cf154061cbc2b584d977eb6fc4ad03c /sw/source/filter/xml/XMLRedlineImportHelper.cxx | |
parent | set LANGUAGE from SvtSysLocale().GetUILanguageTag() (diff) | |
download | core-8ef6be73325dbb6761b247ff187c709ba0f81bfb.tar.gz core-8ef6be73325dbb6761b247ff187c709ba0f81bfb.zip |
loplugin:constparams in sw part6
Change-Id: Ic82946cf9be50d9d9c43338b86dfb700ce5b354c
Reviewed-on: https://gerrit.libreoffice.org/40786
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/filter/xml/XMLRedlineImportHelper.cxx')
-rw-r--r-- | sw/source/filter/xml/XMLRedlineImportHelper.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sw/source/filter/xml/XMLRedlineImportHelper.cxx b/sw/source/filter/xml/XMLRedlineImportHelper.cxx index 32bd7a5d30e0..8f0bbb674b85 100644 --- a/sw/source/filter/xml/XMLRedlineImportHelper.cxx +++ b/sw/source/filter/xml/XMLRedlineImportHelper.cxx @@ -88,9 +88,9 @@ class XTextRangeOrNodeIndexPosition public: XTextRangeOrNodeIndexPosition(); - void Set( Reference<XTextRange> & rRange ); - void Set( SwNodeIndex& rIndex ); - void SetAsNodeIndex( Reference<XTextRange> & rRange ); + void Set( Reference<XTextRange> const & rRange ); + void Set( SwNodeIndex const & rIndex ); + void SetAsNodeIndex( Reference<XTextRange> const & rRange ); void CopyPositionInto(SwPosition& rPos, SwDoc & rDoc); SwDoc* GetDoc(); @@ -104,13 +104,13 @@ XTextRangeOrNodeIndexPosition::XTextRangeOrNodeIndexPosition() : { } -void XTextRangeOrNodeIndexPosition::Set( Reference<XTextRange> & rRange ) +void XTextRangeOrNodeIndexPosition::Set( Reference<XTextRange> const & rRange ) { xRange = rRange->getStart(); // set bookmark pIndex.reset(); } -void XTextRangeOrNodeIndexPosition::Set( SwNodeIndex& rIndex ) +void XTextRangeOrNodeIndexPosition::Set( SwNodeIndex const & rIndex ) { pIndex.reset( new SwNodeIndex(rIndex) ); (*pIndex)-- ; // previous node!!! @@ -118,7 +118,7 @@ void XTextRangeOrNodeIndexPosition::Set( SwNodeIndex& rIndex ) } void XTextRangeOrNodeIndexPosition::SetAsNodeIndex( - Reference<XTextRange> & rRange ) + Reference<XTextRange> const & rRange ) { // XTextRange -> XTunnel -> SwXTextRange SwDoc* pDoc = lcl_GetDocViaTunnel(rRange); @@ -480,7 +480,7 @@ Reference<XTextCursor> XMLRedlineImportHelper::CreateRedlineTextSection( void XMLRedlineImportHelper::SetCursor( const OUString& rId, bool bStart, - Reference<XTextRange> & rRange, + Reference<XTextRange> const & rRange, bool bIsOutsideOfParagraph) { RedlineMapType::iterator aFind = aRedlineMap.find(rId); |