summaryrefslogtreecommitdiff
path: root/starmath/source/document.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'starmath/source/document.cxx')
-rw-r--r--starmath/source/document.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/starmath/source/document.cxx b/starmath/source/document.cxx
index ebe552a88fee..8028a02bf803 100644
--- a/starmath/source/document.cxx
+++ b/starmath/source/document.cxx
@@ -320,9 +320,8 @@ void SetEditEngineDefaultFonts(SfxItemPool &rEditEngineItemPool)
aTable[1].nLang = aOpt.nDefaultLanguage_CJK;
aTable[2].nLang = aOpt.nDefaultLanguage_CTL;
- for (int i = 0; i < 3; ++i)
+ for (FontDta & rFntDta : aTable)
{
- const FontDta &rFntDta = aTable[i];
LanguageType nLang = (LANGUAGE_NONE == rFntDta.nLang) ?
rFntDta.nFallbackLang : rFntDta.nLang;
vcl::Font aFont = OutputDevice::GetDefaultFont(