diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-15 13:56:26 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-15 20:23:04 +0200 |
commit | c504780e7883e911916689c12709d64d78125422 (patch) | |
tree | 55b6551855f14d14454f9bd6302870fa8766c61b /starmath | |
parent | 56a9a3a2d7f64c277b3dadd5a910a1183a47ac69 (diff) |
loplugin:sequenceloop in starmath..svl
Change-Id: I473a8eec9cbf6d44b55ffd6f2233bf39cf6217da
Reviewed-on: https://gerrit.libreoffice.org/77528
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/cfgitem.cxx | 2 | ||||
-rw-r--r-- | starmath/source/unomodel.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/starmath/source/cfgitem.cxx b/starmath/source/cfgitem.cxx index 4636df044b08..a8f246423c21 100644 --- a/starmath/source/cfgitem.cxx +++ b/starmath/source/cfgitem.cxx @@ -559,7 +559,7 @@ void SmMathConfig::LoadFontFormatList() else pFontFormatList->Clear(); - Sequence< OUString > aNodes( GetNodeNames( FONT_FORMAT_LIST ) ); + const Sequence< OUString > aNodes( GetNodeNames( FONT_FORMAT_LIST ) ); for (const OUString& rNode : aNodes) { diff --git a/starmath/source/unomodel.cxx b/starmath/source/unomodel.cxx index 8f200542829e..c271f079d9d3 100644 --- a/starmath/source/unomodel.cxx +++ b/starmath/source/unomodel.cxx @@ -638,7 +638,7 @@ void SmModel::_setPropertyValues(const PropertyMapEntry** ppEntries, const Any* SmModule *pp = SM_MOD(); SmSymbolManager &rManager = pp->GetSymbolManager(); - for (const SymbolDescriptor& rDescriptor : aSequence) + for (const SymbolDescriptor& rDescriptor : std::as_const(aSequence)) { vcl::Font aFont; aFont.SetFamilyName ( rDescriptor.sFontName ); |