summaryrefslogtreecommitdiff
path: root/sw/inc/ndindex.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-08-03 15:54:44 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-08-03 20:49:15 +0200
commit5176c1dd609939df388d58871dfa7db789e13523 (patch)
tree487fc3e63ca2ab92ff37bbabca32f3841d84408d /sw/inc/ndindex.hxx
parent4dd34cd4b829bdc1679b11f19e957313f11620cd (diff)
loplugin:constparams in sw part1
Change-Id: Id8d8afe268a82585ec2d3699411073dfb905d6ba Reviewed-on: https://gerrit.libreoffice.org/40734 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/inc/ndindex.hxx')
-rw-r--r--sw/inc/ndindex.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/inc/ndindex.hxx b/sw/inc/ndindex.hxx
index 66cac16a38e7..51c716d85a5a 100644
--- a/sw/inc/ndindex.hxx
+++ b/sw/inc/ndindex.hxx
@@ -112,7 +112,7 @@ public:
inline sal_uLong GetIndex() const;
// Enables assignments without creation of a temporary object.
- inline SwNodeIndex& Assign( SwNodes& rNds, sal_uLong );
+ inline SwNodeIndex& Assign( SwNodes const & rNds, sal_uLong );
inline SwNodeIndex& Assign( const SwNode& rNd, long nOffset = 0 );
// Gets pointer on NodesArray.
@@ -272,7 +272,7 @@ SwNodeIndex& SwNodeIndex::operator=( const SwNode& rNd )
return *this;
}
-SwNodeIndex& SwNodeIndex::Assign( SwNodes& rNds, sal_uLong nIdx )
+SwNodeIndex& SwNodeIndex::Assign( SwNodes const & rNds, sal_uLong nIdx )
{
*this = *rNds[ nIdx ];
return *this;