summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
Diffstat (limited to 'cui')
-rw-r--r--cui/source/options/optpath.cxx35
1 files changed, 16 insertions, 19 deletions
diff --git a/cui/source/options/optpath.cxx b/cui/source/options/optpath.cxx
index e81d12043ed2..6357989e5fb9 100644
--- a/cui/source/options/optpath.cxx
+++ b/cui/source/options/optpath.cxx
@@ -92,42 +92,39 @@ struct PathUserData_Impl
struct Handle2CfgNameMapping_Impl
{
SvtPathOptions::Paths m_nHandle;
- const char* m_pCfgName;
+ OUString m_aCfgName;
};
}
-Handle2CfgNameMapping_Impl const Hdl2CfgMap_Impl[] =
+constexpr Handle2CfgNameMapping_Impl Hdl2CfgMap_Impl[]
{
- { SvtPathOptions::Paths::AutoCorrect, "AutoCorrect" },
- { SvtPathOptions::Paths::AutoText, "AutoText" },
- { SvtPathOptions::Paths::Backup, "Backup" },
- { SvtPathOptions::Paths::Gallery, "Gallery" },
- { SvtPathOptions::Paths::Graphic, "Graphic" },
- { SvtPathOptions::Paths::Temp, "Temp" },
- { SvtPathOptions::Paths::Template, "Template" },
- { SvtPathOptions::Paths::Work, "Work" },
- { SvtPathOptions::Paths::Dictionary, "Dictionary" },
- { SvtPathOptions::Paths::Classification, "Classification" },
+ { SvtPathOptions::Paths::AutoCorrect, u"AutoCorrect"_ustr },
+ { SvtPathOptions::Paths::AutoText, u"AutoText"_ustr },
+ { SvtPathOptions::Paths::Backup, u"Backup"_ustr },
+ { SvtPathOptions::Paths::Gallery, u"Gallery"_ustr },
+ { SvtPathOptions::Paths::Graphic, u"Graphic"_ustr },
+ { SvtPathOptions::Paths::Temp, u"Temp"_ustr },
+ { SvtPathOptions::Paths::Template, u"Template"_ustr },
+ { SvtPathOptions::Paths::Work, u"Work"_ustr },
+ { SvtPathOptions::Paths::Dictionary, u"Dictionary"_ustr },
+ { SvtPathOptions::Paths::Classification, u"Classification"_ustr },
#if OSL_DEBUG_LEVEL > 1
- { SvtPathOptions::Paths::Linguistic, "Linguistic" },
+ { SvtPathOptions::Paths::Linguistic, u"Linguistic"_ustr },
#endif
- { SvtPathOptions::Paths::LAST, nullptr }
};
static OUString getCfgName_Impl( SvtPathOptions::Paths _nHandle )
{
OUString sCfgName;
- sal_uInt16 nIndex = 0;
- while ( Hdl2CfgMap_Impl[ nIndex ].m_nHandle != SvtPathOptions::Paths::LAST )
+ for (const auto & rMapping : Hdl2CfgMap_Impl)
{
- if ( Hdl2CfgMap_Impl[ nIndex ].m_nHandle == _nHandle )
+ if ( rMapping.m_nHandle == _nHandle )
{
// config name found
- sCfgName = OUString::createFromAscii( Hdl2CfgMap_Impl[ nIndex ].m_pCfgName );
+ sCfgName = rMapping.m_aCfgName;
break;
}
- ++nIndex;
}
return sCfgName;
t/lo/core/commit/svgio/qa?h=feature/cib_contract49d&id=c2d130425cc876cceb96cc7e47636426a9e48fa8'>SVGIO: Shapes within a clippath element might inherit...Xisco Fauli 2016-03-10Extract Directories from BootstrapFixtureBaseStephan Bergmann 2016-03-07Revert "tdf#97538: SVGIO: Add unittest"Xisco Faulí 2016-03-07tdf#97538: SVGIO: Add unittestXisco Fauli 2016-03-06SVGIO: Check minX, minY, maxX and maxY in polypolygonXisco Fauli 2016-03-03SVGIO: Check height and width of polypolygoncolorXisco Fauli 2016-02-25tdf#97936: SVGIO: Add unittestXisco Fauli 2016-02-21tdf#97538 no cropping if width, height and viewBox missingRegina Henschel 2016-02-19SVGIO: Fix problem when relative font-size depends on its...Xisco Fauli 2016-02-18SVGIO: tdf#97941: Don't double tspan fontsizeXisco Fauli 2016-02-13SVGIO: tdf#97659: Add support for RGBAXisco Fauli 2016-02-11SVGIO: tdf#97543: Add import testXisco Fauli 2016-02-11tdf#97542: SVGIO: First check the current fill attributeXisco Fauli 2016-02-09SVGIO: tdf#79163: Add import testXisco Fauli 2016-02-09SVGIO: tdf#85770: Add import testXisco Fauli 2016-02-09SVGIO: tdf#45771: Add import testXisco Fauli 2016-02-09SVGIO: Add import test for 7c151f39144b7401a99c7b736a41e5dce4ac4db1Xisco Fauli 2016-02-09SVGIO: Add import test for Fontsize keywordsXisco Fauli 2016-02-08loplugin:unusedmethodsNoel Grandin