diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-20 14:02:06 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-20 15:35:37 +0200 |
commit | 95dd183c41c52aa0ed9b5223ae7584f486103a78 (patch) | |
tree | 87b0221cf5ddfc69dc054820cac309e63230c2fb /starmath/source/cursor.cxx | |
parent | 8d54827762e2a6702a16b67724a6a5f393d72598 (diff) |
loplugin:constvars in solenv..svtools
Change-Id: Ieb0116321bbddd804db6d1789ea3521c5b220840
Reviewed-on: https://gerrit.libreoffice.org/77807
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'starmath/source/cursor.cxx')
-rw-r--r-- | starmath/source/cursor.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/starmath/source/cursor.cxx b/starmath/source/cursor.cxx index f7d127bd25e9..b6575b8655b3 100644 --- a/starmath/source/cursor.cxx +++ b/starmath/source/cursor.cxx @@ -129,7 +129,7 @@ void SmCursor::BuildGraph(){ //Restore anchor and position pointers if(_anchor.IsValid() || _position.IsValid()){ - for(auto &pEntry : *mpGraph) + for(const auto &pEntry : *mpGraph) { if(_anchor == pEntry->CaretPos) mpAnchor = pEntry.get(); @@ -152,7 +152,7 @@ void SmCursor::BuildGraph(){ } bool SmCursor::SetCaretPosition(SmCaretPos pos){ - for(auto &pEntry : *mpGraph) + for(const auto &pEntry : *mpGraph) { if(pEntry->CaretPos == pos) { |