diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-20 09:31:26 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-20 12:40:57 +0200 |
commit | b2423a480785db6f4883d6314690b22b69d55c22 (patch) | |
tree | 52f00376acff4db0e2d522d1068d35a227836ad4 /editeng/source/editeng/impedit2.cxx | |
parent | 07f9223daae92ac11be2382ecd0095e744f5695f (diff) |
loplugin:constvars in drawinglayer..framework
Change-Id: I6e62229fdc38f49f766a306f5264afafe9acefa5
Reviewed-on: https://gerrit.libreoffice.org/77774
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'editeng/source/editeng/impedit2.cxx')
-rw-r--r-- | editeng/source/editeng/impedit2.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editeng/source/editeng/impedit2.cxx b/editeng/source/editeng/impedit2.cxx index b81fa54d3e18..b66c4fa7638f 100644 --- a/editeng/source/editeng/impedit2.cxx +++ b/editeng/source/editeng/impedit2.cxx @@ -1720,7 +1720,7 @@ void ImpEditEngine::InitScriptTypes( sal_Int32 nPara ) // i89825: Use CTL font for numbers embedded into an RTL run: WritingDirectionInfos& rDirInfos = pParaPortion->aWritingDirectionInfos; - for (WritingDirectionInfo & rDirInfo : rDirInfos) + for (const WritingDirectionInfo & rDirInfo : rDirInfos) { const sal_Int32 nStart = rDirInfo.nStartPos; const sal_Int32 nEnd = rDirInfo.nEndPos; @@ -3371,7 +3371,7 @@ void ImpEditEngine::UpdateSelections() { EditSelection aCurSel( pView->pImpEditView->GetEditSelection() ); bool bChanged = false; - for (std::unique_ptr<DeletedNodeInfo> & aDeletedNode : aDeletedNodes) + for (const std::unique_ptr<DeletedNodeInfo> & aDeletedNode : aDeletedNodes) { const DeletedNodeInfo& rInf = *aDeletedNode; if ( ( aCurSel.Min().GetNode() == rInf.GetNode() ) || |