diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-11-15 09:13:33 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-11-15 12:56:26 +0000 |
commit | 0d051730156f633150fa9e3107fe97cf7be6d8f9 (patch) | |
tree | 73a29cd8f7f6c3630088c74f52cb53c948eb4ba5 /sw/source/core/docnode | |
parent | d2e9d3d0ed42f0fc24255c64546d8d256ca33aae (diff) |
loplugin:constantparam
Change-Id: Iced8ff99d52d55e6b6c3126affafbea6786e94f0
Reviewed-on: https://gerrit.libreoffice.org/30858
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/docnode')
-rw-r--r-- | sw/source/core/docnode/node2lay.cxx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/sw/source/core/docnode/node2lay.cxx b/sw/source/core/docnode/node2lay.cxx index 4a829a33a94f..a1a8f0664ff4 100644 --- a/sw/source/core/docnode/node2lay.cxx +++ b/sw/source/core/docnode/node2lay.cxx @@ -55,8 +55,7 @@ public: // Inserts a Frame under every pUpper of the array void RestoreUpperFrames( SwNodes& rNds, sal_uLong nStt, sal_uLong nEnd ); - SwFrame* GetFrame( const Point* pDocPos, - const SwPosition *pPos ) const; + SwFrame* GetFrame( const Point* pDocPos ) const; }; SwNode* GoNextWithFrame(const SwNodes& rNodes, SwNodeIndex *pIdx) @@ -415,11 +414,10 @@ void SwNode2LayImpl::RestoreUpperFrames( SwNodes& rNds, sal_uLong nStt, sal_uLon } } -SwFrame* SwNode2LayImpl::GetFrame( const Point* pDocPos, - const SwPosition *pPos ) const +SwFrame* SwNode2LayImpl::GetFrame( const Point* pDocPos ) const { // test if change of member pIter -> pMod broke anything - return pMod ? ::GetFrameOfModify( nullptr, *pMod, FRM_ALL, pDocPos, pPos ) : nullptr; + return pMod ? ::GetFrameOfModify( nullptr, *pMod, FRM_ALL, pDocPos, nullptr ) : nullptr; } SwNode2Layout::SwNode2Layout( const SwNode& rNd, sal_uLong nIdx ) @@ -455,7 +453,7 @@ SwNode2Layout::~SwNode2Layout() SwFrame* SwNode2Layout::GetFrame( const Point* pDocPos ) const { - return pImpl->GetFrame( pDocPos, nullptr ); + return pImpl->GetFrame( pDocPos ); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |