summaryrefslogtreecommitdiff
path: root/editeng/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-08-20 09:31:26 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-08-20 12:40:57 +0200
commitb2423a480785db6f4883d6314690b22b69d55c22 (patch)
tree52f00376acff4db0e2d522d1068d35a227836ad4 /editeng/source
parent07f9223daae92ac11be2382ecd0095e744f5695f (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')
-rw-r--r--editeng/source/editeng/impedit2.cxx4
-rw-r--r--editeng/source/editeng/impedit4.cxx2
-rw-r--r--editeng/source/items/legacyitem.cxx2
3 files changed, 4 insertions, 4 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() ) ||
diff --git a/editeng/source/editeng/impedit4.cxx b/editeng/source/editeng/impedit4.cxx
index e254ca4c7ad8..367eb250f0a3 100644
--- a/editeng/source/editeng/impedit4.cxx
+++ b/editeng/source/editeng/impedit4.cxx
@@ -2894,7 +2894,7 @@ EditSelection ImpEditEngine::TransliterateText( const EditSelection& rSelection,
if ( !pUndo && IsUndoEnabled() && !IsInUndo() )
{
// adjust selection to include all changes
- for (eeTransliterationChgData & aChange : aChanges)
+ for (const eeTransliterationChgData & aChange : aChanges)
{
const EditSelection &rSel = aChange.aSelection;
if (aSel.Min().GetNode() == rSel.Min().GetNode() &&
diff --git a/editeng/source/items/legacyitem.cxx b/editeng/source/items/legacyitem.cxx
index f2997f715cc3..f3a0ba2f6d0f 100644
--- a/editeng/source/items/legacyitem.cxx
+++ b/editeng/source/items/legacyitem.cxx
@@ -353,7 +353,7 @@ namespace legacy
if( nItemVersion >= BOX_4DISTS_VERSION && (cLine&0x10) != 0 )
{
- for(SvxBoxItemLine & i : aLineMap)
+ for(const SvxBoxItemLine & i : aLineMap)
{
sal_uInt16 nDist;
rStrm.ReadUInt16( nDist );