diff options
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/ElementsDockingWindow.cxx | 2 | ||||
-rw-r--r-- | starmath/source/cursor.cxx | 4 | ||||
-rw-r--r-- | starmath/source/document.cxx | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/starmath/source/ElementsDockingWindow.cxx b/starmath/source/ElementsDockingWindow.cxx index bee538346307..daef8f190e2b 100644 --- a/starmath/source/ElementsDockingWindow.cxx +++ b/starmath/source/ElementsDockingWindow.cxx @@ -363,7 +363,7 @@ void SmElementsControl::LayoutOrPaintContents(vcl::RenderContext *pContext) boxX = nControlWidth / perLine; const SmElement* pCurrentElement = current(); - for (std::unique_ptr<SmElement> & i : maElementList) + for (const std::unique_ptr<SmElement> & i : maElementList) { SmElement* element = i.get(); if (element->isSeparator()) 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) { diff --git a/starmath/source/document.cxx b/starmath/source/document.cxx index c3373f5968c9..bd0c67081f51 100644 --- a/starmath/source/document.cxx +++ b/starmath/source/document.cxx @@ -304,7 +304,7 @@ void SmDocShell::UpdateEditEngineDefaultFonts(const Color& aTextColor) aTable[1].nLang = maLinguOptions.nDefaultLanguage_CJK; aTable[2].nLang = maLinguOptions.nDefaultLanguage_CTL; - for (FontDta & rFntDta : aTable) + for (const FontDta & rFntDta : aTable) { LanguageType nLang = (LANGUAGE_NONE == rFntDta.nLang) ? rFntDta.nFallbackLang : rFntDta.nLang; |