summaryrefslogtreecommitdiff
path: root/sw/source/core/doc/doccomp.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-11-06 13:40:23 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-11-07 07:32:58 +0100
commit4f5469ed0bb4dce1dc62180eb3d1c5e0257f6cc3 (patch)
tree056960d8f286313820939c7d1d2e4c4c63ab0a45 /sw/source/core/doc/doccomp.cxx
parentd0dd80c8afd83dcfe0788d1c428996a9d8a85fa0 (diff)
loplugin:constparams in sw
Change-Id: Ie7aac013db4116aa9bd2caa4fc6b4bfad5cea733 Reviewed-on: https://gerrit.libreoffice.org/44356 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/doc/doccomp.cxx')
-rw-r--r--sw/source/core/doc/doccomp.cxx26
1 files changed, 13 insertions, 13 deletions
diff --git a/sw/source/core/doc/doccomp.cxx b/sw/source/core/doc/doccomp.cxx
index 819ebbdb4cbe..52f9c86a4e62 100644
--- a/sw/source/core/doc/doccomp.cxx
+++ b/sw/source/core/doc/doccomp.cxx
@@ -122,8 +122,8 @@ public:
void ShowDelete( const CompareData& rData, sal_uLong nStt,
sal_uLong nEnd, sal_uLong nInsPos );
void CheckForChangesInLine( const CompareData& rData,
- sal_uLong& nStt, sal_uLong& nEnd,
- sal_uLong& nThisStt, sal_uLong& nThisEnd );
+ sal_uLong nStt, sal_uLong nEnd,
+ sal_uLong nThisStt, sal_uLong nThisEnd );
// Set non-ambiguous index for a line. Same lines have the same index, even in the other CompareData!
void SetIndex( size_t nLine, size_t nIndex );
@@ -1555,11 +1555,11 @@ void CompareData::ShowDelete(
}
void CompareData::CheckForChangesInLine( const CompareData& rData,
- sal_uLong& rStt, sal_uLong& rEnd,
- sal_uLong& rThisStt, sal_uLong& rThisEnd )
+ sal_uLong nStt, sal_uLong nEnd,
+ sal_uLong nThisStt, sal_uLong nThisEnd )
{
- LineArrayComparator aCmp( *this, rData, rThisStt, rThisEnd,
- rStt, rEnd );
+ LineArrayComparator aCmp( *this, rData, nThisStt, nThisEnd,
+ nStt, nEnd );
int nMinLen = std::min( aCmp.GetLen1(), aCmp.GetLen2() );
std::unique_ptr<int[]> pLcsDst(new int[ nMinLen ]);
@@ -1580,29 +1580,29 @@ void CompareData::CheckForChangesInLine( const CompareData& rData,
if( i )
{
- const SwCompareLine* pDstLn = GetLine( rThisStt + nDstFrom - 1 );
- const SwCompareLine* pSrcLn = rData.GetLine( rStt + nSrcFrom - 1 );
+ const SwCompareLine* pDstLn = GetLine( nThisStt + nDstFrom - 1 );
+ const SwCompareLine* pSrcLn = rData.GetLine( nStt + nSrcFrom - 1 );
// Show differences in detail for lines that
// were matched as only slightly different
if( !pDstLn->ChangesInLine( *pSrcLn, pInsRing, pDelRing ) )
{
- ShowInsert( rThisStt + nDstFrom - 1, rThisStt + nDstFrom );
- ShowDelete( rData, rStt + nSrcFrom - 1, rStt + nSrcFrom,
- rThisStt + nDstFrom );
+ ShowInsert( nThisStt + nDstFrom - 1, nThisStt + nDstFrom );
+ ShowDelete( rData, nStt + nSrcFrom - 1, nStt + nSrcFrom,
+ nThisStt + nDstFrom );
}
}
// Lines missing from source are inserted
if( nDstFrom != nDstTo )
{
- ShowInsert( rThisStt + nDstFrom, rThisStt + nDstTo );
+ ShowInsert( nThisStt + nDstFrom, nThisStt + nDstTo );
}
// Lines missing from destination are deleted
if( nSrcFrom != nSrcTo )
{
- ShowDelete( rData, rStt + nSrcFrom, rStt + nSrcTo, rThisStt + nDstTo );
+ ShowDelete( rData, nStt + nSrcFrom, nStt + nSrcTo, nThisStt + nDstTo );
}
}
}