diff options
Diffstat (limited to 'xmloff')
28 files changed, 228 insertions, 228 deletions
diff --git a/xmloff/source/core/SettingsExportHelper.cxx b/xmloff/source/core/SettingsExportHelper.cxx index fbabfe5df775..6c193e19267e 100644 --- a/xmloff/source/core/SettingsExportHelper.cxx +++ b/xmloff/source/core/SettingsExportHelper.cxx @@ -45,13 +45,13 @@ using namespace ::com::sun::star; using namespace ::xmloff::token; -const OUStringLiteral gsPrinterIndependentLayout( u"PrinterIndependentLayout" ); -const OUStringLiteral gsColorTableURL( u"ColorTableURL" ); -const OUStringLiteral gsLineEndTableURL( u"LineEndTableURL" ); -const OUStringLiteral gsHatchTableURL( u"HatchTableURL" ); -const OUStringLiteral gsDashTableURL( u"DashTableURL" ); -const OUStringLiteral gsGradientTableURL( u"GradientTableURL" ); -const OUStringLiteral gsBitmapTableURL( u"BitmapTableURL" ); +constexpr OUStringLiteral gsPrinterIndependentLayout( u"PrinterIndependentLayout" ); +constexpr OUStringLiteral gsColorTableURL( u"ColorTableURL" ); +constexpr OUStringLiteral gsLineEndTableURL( u"LineEndTableURL" ); +constexpr OUStringLiteral gsHatchTableURL( u"HatchTableURL" ); +constexpr OUStringLiteral gsDashTableURL( u"DashTableURL" ); +constexpr OUStringLiteral gsGradientTableURL( u"GradientTableURL" ); +constexpr OUStringLiteral gsBitmapTableURL( u"BitmapTableURL" ); XMLSettingsExportHelper::XMLSettingsExportHelper( ::xmloff::XMLSettingsExportContext& i_rContext ) : m_rContext( i_rContext ) diff --git a/xmloff/source/draw/XMLImageMapContext.cxx b/xmloff/source/draw/XMLImageMapContext.cxx index d822f363400e..99949c2d5caf 100644 --- a/xmloff/source/draw/XMLImageMapContext.cxx +++ b/xmloff/source/draw/XMLImageMapContext.cxx @@ -554,7 +554,7 @@ void XMLImageMapCircleContext::Prepare( } -const OUStringLiteral gsImageMap(u"ImageMap"); +constexpr OUStringLiteral gsImageMap(u"ImageMap"); XMLImageMapContext::XMLImageMapContext( SvXMLImport& rImport, diff --git a/xmloff/source/draw/XMLImageMapExport.cxx b/xmloff/source/draw/XMLImageMapExport.cxx index 25117838ac88..746d975b737a 100644 --- a/xmloff/source/draw/XMLImageMapExport.cxx +++ b/xmloff/source/draw/XMLImageMapExport.cxx @@ -53,17 +53,17 @@ using ::com::sun::star::document::XEventsSupplier; using ::com::sun::star::lang::XServiceInfo; using ::com::sun::star::drawing::PointSequence; -const OUStringLiteral gsBoundary(u"Boundary"); -const OUStringLiteral gsCenter(u"Center"); -const OUStringLiteral gsDescription(u"Description"); -const OUStringLiteral gsImageMap(u"ImageMap"); -const OUStringLiteral gsIsActive(u"IsActive"); -const OUStringLiteral gsName(u"Name"); -const OUStringLiteral gsPolygon(u"Polygon"); -const OUStringLiteral gsRadius(u"Radius"); -const OUStringLiteral gsTarget(u"Target"); -const OUStringLiteral gsURL(u"URL"); -const OUStringLiteral gsTitle(u"Title"); +constexpr OUStringLiteral gsBoundary(u"Boundary"); +constexpr OUStringLiteral gsCenter(u"Center"); +constexpr OUStringLiteral gsDescription(u"Description"); +constexpr OUStringLiteral gsImageMap(u"ImageMap"); +constexpr OUStringLiteral gsIsActive(u"IsActive"); +constexpr OUStringLiteral gsName(u"Name"); +constexpr OUStringLiteral gsPolygon(u"Polygon"); +constexpr OUStringLiteral gsRadius(u"Radius"); +constexpr OUStringLiteral gsTarget(u"Target"); +constexpr OUStringLiteral gsURL(u"URL"); +constexpr OUStringLiteral gsTitle(u"Title"); XMLImageMapExport::XMLImageMapExport(SvXMLExport& rExp) : mrExport(rExp) diff --git a/xmloff/source/draw/sdxmlexp.cxx b/xmloff/source/draw/sdxmlexp.cxx index 708dfb3fa085..b67829c58eac 100644 --- a/xmloff/source/draw/sdxmlexp.cxx +++ b/xmloff/source/draw/sdxmlexp.cxx @@ -368,7 +368,7 @@ ImpXMLAutoLayoutInfo::ImpXMLAutoLayoutInfo(sal_uInt16 nTyp, ImpXMLEXPPageMasterI maPresRect.SetSize(aLayoutSize); } -const OUStringLiteral gsPageLayoutNames( u"PageLayoutNames" ); +constexpr OUStringLiteral gsPageLayoutNames( u"PageLayoutNames" ); SdXMLExport::SdXMLExport( const css::uno::Reference< css::uno::XComponentContext >& xContext, diff --git a/xmloff/source/draw/shapeexport.cxx b/xmloff/source/draw/shapeexport.cxx index 6b3559200d02..58d916c7608f 100644 --- a/xmloff/source/draw/shapeexport.cxx +++ b/xmloff/source/draw/shapeexport.cxx @@ -146,26 +146,26 @@ bool supportsText(XmlShapeType eShapeType) } -const OUStringLiteral gsZIndex( u"ZOrder" ); -const OUStringLiteral gsPrintable( u"Printable" ); -const OUStringLiteral gsVisible( u"Visible" ); -const OUStringLiteral gsModel( u"Model" ); -const OUStringLiteral gsStartShape( u"StartShape" ); -const OUStringLiteral gsEndShape( u"EndShape" ); -const OUStringLiteral gsOnClick( u"OnClick" ); -const OUStringLiteral gsEventType( u"EventType" ); -const OUStringLiteral gsPresentation( u"Presentation" ); -const OUStringLiteral gsMacroName( u"MacroName" ); -const OUStringLiteral gsScript( u"Script" ); -const OUStringLiteral gsLibrary( u"Library" ); -const OUStringLiteral gsClickAction( u"ClickAction" ); -const OUStringLiteral gsBookmark( u"Bookmark" ); -const OUStringLiteral gsEffect( u"Effect" ); -const OUStringLiteral gsPlayFull( u"PlayFull" ); -const OUStringLiteral gsVerb( u"Verb" ); -const OUStringLiteral gsSoundURL( u"SoundURL" ); -const OUStringLiteral gsSpeed( u"Speed" ); -const OUStringLiteral gsStarBasic( u"StarBasic" ); +constexpr OUStringLiteral gsZIndex( u"ZOrder" ); +constexpr OUStringLiteral gsPrintable( u"Printable" ); +constexpr OUStringLiteral gsVisible( u"Visible" ); +constexpr OUStringLiteral gsModel( u"Model" ); +constexpr OUStringLiteral gsStartShape( u"StartShape" ); +constexpr OUStringLiteral gsEndShape( u"EndShape" ); +constexpr OUStringLiteral gsOnClick( u"OnClick" ); +constexpr OUStringLiteral gsEventType( u"EventType" ); +constexpr OUStringLiteral gsPresentation( u"Presentation" ); +constexpr OUStringLiteral gsMacroName( u"MacroName" ); +constexpr OUStringLiteral gsScript( u"Script" ); +constexpr OUStringLiteral gsLibrary( u"Library" ); +constexpr OUStringLiteral gsClickAction( u"ClickAction" ); +constexpr OUStringLiteral gsBookmark( u"Bookmark" ); +constexpr OUStringLiteral gsEffect( u"Effect" ); +constexpr OUStringLiteral gsPlayFull( u"PlayFull" ); +constexpr OUStringLiteral gsVerb( u"Verb" ); +constexpr OUStringLiteral gsSoundURL( u"SoundURL" ); +constexpr OUStringLiteral gsSpeed( u"Speed" ); +constexpr OUStringLiteral gsStarBasic( u"StarBasic" ); XMLShapeExport::XMLShapeExport(SvXMLExport& rExp, SvXMLExportPropertyMapper *pExtMapper ) diff --git a/xmloff/source/script/XMLEventExport.cxx b/xmloff/source/script/XMLEventExport.cxx index 7d45be7fffd8..877edf198ab9 100644 --- a/xmloff/source/script/XMLEventExport.cxx +++ b/xmloff/source/script/XMLEventExport.cxx @@ -40,7 +40,7 @@ using ::com::sun::star::container::XNameReplace; using ::com::sun::star::container::XNameAccess; using ::xmloff::token::XML_EVENT_LISTENERS; -const OUStringLiteral gsEventType(u"EventType"); +constexpr OUStringLiteral gsEventType(u"EventType"); XMLEventExport::XMLEventExport(SvXMLExport& rExp) : rExport(rExp), diff --git a/xmloff/source/script/XMLScriptContextFactory.cxx b/xmloff/source/script/XMLScriptContextFactory.cxx index 9dfb704c71f1..da16657efd5c 100644 --- a/xmloff/source/script/XMLScriptContextFactory.cxx +++ b/xmloff/source/script/XMLScriptContextFactory.cxx @@ -32,9 +32,9 @@ using ::com::sun::star::beans::PropertyValue; using ::com::sun::star::uno::Reference; using ::com::sun::star::uno::Sequence; -const OUStringLiteral gsEventType(u"EventType"); -const OUStringLiteral gsScript(u"Script"); -const OUStringLiteral gsURL(u"Script"); +constexpr OUStringLiteral gsEventType(u"EventType"); +constexpr OUStringLiteral gsScript(u"Script"); +constexpr OUStringLiteral gsURL(u"Script"); XMLScriptContextFactory::XMLScriptContextFactory() { diff --git a/xmloff/source/script/XMLScriptExportHandler.cxx b/xmloff/source/script/XMLScriptExportHandler.cxx index af7cb2ec976b..6b35a4456402 100644 --- a/xmloff/source/script/XMLScriptExportHandler.cxx +++ b/xmloff/source/script/XMLScriptExportHandler.cxx @@ -31,7 +31,7 @@ using namespace ::xmloff::token; using ::com::sun::star::beans::PropertyValue; -const OUStringLiteral gsURL(u"Script"); +constexpr OUStringLiteral gsURL(u"Script"); XMLScriptExportHandler::XMLScriptExportHandler() { diff --git a/xmloff/source/script/XMLStarBasicContextFactory.cxx b/xmloff/source/script/XMLStarBasicContextFactory.cxx index 739fe5afad52..4c384f98acc6 100644 --- a/xmloff/source/script/XMLStarBasicContextFactory.cxx +++ b/xmloff/source/script/XMLStarBasicContextFactory.cxx @@ -33,10 +33,10 @@ using ::com::sun::star::uno::Reference; using ::com::sun::star::uno::Sequence; -const OUStringLiteral gsEventType(u"EventType"); -const OUStringLiteral gsLibrary(u"Library"); -const OUStringLiteral gsMacroName(u"MacroName"); -const OUStringLiteral gsStarBasic(u"StarBasic"); +constexpr OUStringLiteral gsEventType(u"EventType"); +constexpr OUStringLiteral gsLibrary(u"Library"); +constexpr OUStringLiteral gsMacroName(u"MacroName"); +constexpr OUStringLiteral gsStarBasic(u"StarBasic"); XMLStarBasicContextFactory::XMLStarBasicContextFactory() { diff --git a/xmloff/source/script/XMLStarBasicExportHandler.cxx b/xmloff/source/script/XMLStarBasicExportHandler.cxx index e61b3f8f8ebb..2170d32fdfd0 100644 --- a/xmloff/source/script/XMLStarBasicExportHandler.cxx +++ b/xmloff/source/script/XMLStarBasicExportHandler.cxx @@ -32,11 +32,11 @@ using namespace ::xmloff::token; using ::com::sun::star::beans::PropertyValue; -const OUStringLiteral gsStarBasic(u"StarBasic"); -const OUStringLiteral gsLibrary(u"Library"); -const OUStringLiteral gsMacroName(u"MacroName"); -const OUStringLiteral gsStarOffice(u"StarOffice"); -const OUStringLiteral gsApplication(u"application"); +constexpr OUStringLiteral gsStarBasic(u"StarBasic"); +constexpr OUStringLiteral gsLibrary(u"Library"); +constexpr OUStringLiteral gsMacroName(u"MacroName"); +constexpr OUStringLiteral gsStarOffice(u"StarOffice"); +constexpr OUStringLiteral gsApplication(u"application"); XMLStarBasicExportHandler::XMLStarBasicExportHandler() { diff --git a/xmloff/source/style/XMLPageExport.cxx b/xmloff/source/style/XMLPageExport.cxx index 27bbfbb942f5..640e11b7094d 100644 --- a/xmloff/source/style/XMLPageExport.cxx +++ b/xmloff/source/style/XMLPageExport.cxx @@ -41,8 +41,8 @@ using namespace ::com::sun::star::container; using namespace ::com::sun::star::beans; using namespace ::xmloff::token; -const OUStringLiteral gsIsPhysical( u"IsPhysical" ); -const OUStringLiteral gsFollowStyle( u"FollowStyle" ); +constexpr OUStringLiteral gsIsPhysical( u"IsPhysical" ); +constexpr OUStringLiteral gsFollowStyle( u"FollowStyle" ); namespace { diff --git a/xmloff/source/style/numehelp.cxx b/xmloff/source/style/numehelp.cxx index d1479cf0c4cc..3d46adcb575e 100644 --- a/xmloff/source/style/numehelp.cxx +++ b/xmloff/source/style/numehelp.cxx @@ -38,10 +38,10 @@ using namespace com::sun::star; using namespace xmloff::token; -const OUStringLiteral gsStandardFormat(u"StandardFormat"); -const OUStringLiteral gsType(u"Type"); -const OUStringLiteral gsCurrencySymbol(u"CurrencySymbol"); -const OUStringLiteral gsCurrencyAbbreviation(u"CurrencyAbbreviation"); +constexpr OUStringLiteral gsStandardFormat(u"StandardFormat"); +constexpr OUStringLiteral gsType(u"Type"); +constexpr OUStringLiteral gsCurrencySymbol(u"CurrencySymbol"); +constexpr OUStringLiteral gsCurrencyAbbreviation(u"CurrencyAbbreviation"); XMLNumberFormatAttributesExportHelper::XMLNumberFormatAttributesExportHelper( css::uno::Reference< css::util::XNumberFormatsSupplier > const & xTempNumberFormatsSupplier) diff --git a/xmloff/source/style/prstylei.cxx b/xmloff/source/style/prstylei.cxx index 48cbeca9edad..2d2ef1b4b047 100644 --- a/xmloff/source/style/prstylei.cxx +++ b/xmloff/source/style/prstylei.cxx @@ -143,8 +143,8 @@ namespace -const OUStringLiteral gsIsPhysical( u"IsPhysical" ); -const OUStringLiteral gsFollowStyle( u"FollowStyle" ); +constexpr OUStringLiteral gsIsPhysical( u"IsPhysical" ); +constexpr OUStringLiteral gsFollowStyle( u"FollowStyle" ); XMLPropStyleContext::XMLPropStyleContext( SvXMLImport& rImport, SvXMLStylesContext& rStyles, XmlStyleFamily nFamily, diff --git a/xmloff/source/style/styleexp.cxx b/xmloff/source/style/styleexp.cxx index 66cab27c9d19..c87d3e3edff6 100644 --- a/xmloff/source/style/styleexp.cxx +++ b/xmloff/source/style/styleexp.cxx @@ -52,11 +52,11 @@ using namespace ::xmloff::token; using ::com::sun::star::document::XEventsSupplier; -const OUStringLiteral gsIsPhysical( u"IsPhysical" ); -const OUStringLiteral gsIsAutoUpdate( u"IsAutoUpdate" ); -const OUStringLiteral gsFollowStyle( u"FollowStyle" ); -const OUStringLiteral gsNumberingStyleName( u"NumberingStyleName" ); -const OUStringLiteral gsOutlineLevel( u"OutlineLevel" ); +constexpr OUStringLiteral gsIsPhysical( u"IsPhysical" ); +constexpr OUStringLiteral gsIsAutoUpdate( u"IsAutoUpdate" ); +constexpr OUStringLiteral gsFollowStyle( u"FollowStyle" ); +constexpr OUStringLiteral gsNumberingStyleName( u"NumberingStyleName" ); +constexpr OUStringLiteral gsOutlineLevel( u"OutlineLevel" ); XMLStyleExport::XMLStyleExport( SvXMLExport& rExp, diff --git a/xmloff/source/style/xmlnume.cxx b/xmloff/source/style/xmlnume.cxx index 9dd157122b1a..2aac21253218 100644 --- a/xmloff/source/style/xmlnume.cxx +++ b/xmloff/source/style/xmlnume.cxx @@ -606,9 +606,9 @@ void SvxXMLNumRuleExport::exportLevelStyle( sal_Int32 nLevel, } -const OUStringLiteral gsNumberingRules( u"NumberingRules" ); -const OUStringLiteral gsIsPhysical( u"IsPhysical" ); -const OUStringLiteral gsIsContinuousNumbering( u"IsContinuousNumbering" ); +constexpr OUStringLiteral gsNumberingRules( u"NumberingRules" ); +constexpr OUStringLiteral gsIsPhysical( u"IsPhysical" ); +constexpr OUStringLiteral gsIsContinuousNumbering( u"IsContinuousNumbering" ); SvxXMLNumRuleExport::SvxXMLNumRuleExport( SvXMLExport& rExp ) : rExport( rExp ), diff --git a/xmloff/source/style/xmlnumi.cxx b/xmloff/source/style/xmlnumi.cxx index bed36cb693da..73e3d1e2b3c5 100644 --- a/xmloff/source/style/xmlnumi.cxx +++ b/xmloff/source/style/xmlnumi.cxx @@ -228,8 +228,8 @@ public: } }; -const OUStringLiteral gsStarBats( u"StarBats" ); -const OUStringLiteral gsStarMath( u"StarMath" ); +constexpr OUStringLiteral gsStarBats( u"StarBats" ); +constexpr OUStringLiteral gsStarMath( u"StarMath" ); SvxXMLListLevelStyleContext_Impl::SvxXMLListLevelStyleContext_Impl( SvXMLImport& rImport, sal_Int32 nElement, @@ -918,9 +918,9 @@ void SvxXMLListStyleContext::SetAttribute( sal_uInt16 nPrefixKey, } } -const OUStringLiteral sIsPhysical( u"IsPhysical" ); -const OUStringLiteral sNumberingRules( u"NumberingRules" ); -const OUStringLiteral sIsContinuousNumbering( u"IsContinuousNumbering" ); +constexpr OUStringLiteral sIsPhysical( u"IsPhysical" ); +constexpr OUStringLiteral sNumberingRules( u"NumberingRules" ); +constexpr OUStringLiteral sIsContinuousNumbering( u"IsContinuousNumbering" ); SvxXMLListStyleContext::SvxXMLListStyleContext( SvXMLImport& rImport, bool bOutl ) diff --git a/xmloff/source/style/xmlstyle.cxx b/xmloff/source/style/xmlstyle.cxx index 67909f15fb96..2a8e44b21285 100644 --- a/xmloff/source/style/xmlstyle.cxx +++ b/xmloff/source/style/xmlstyle.cxx @@ -59,8 +59,8 @@ using namespace ::com::sun::star::container; using namespace ::com::sun::star::style; using namespace ::xmloff::token; -const OUStringLiteral gsParaStyleServiceName( u"com.sun.star.style.ParagraphStyle" ); -const OUStringLiteral gsTextStyleServiceName( u"com.sun.star.style.CharacterStyle" ); +constexpr OUStringLiteral gsParaStyleServiceName( u"com.sun.star.style.ParagraphStyle" ); +constexpr OUStringLiteral gsTextStyleServiceName( u"com.sun.star.style.CharacterStyle" ); void SvXMLStyleContext::SetAttribute( sal_uInt16 nPrefixKey, const OUString& rLocalName, diff --git a/xmloff/source/text/XMLFootnoteConfigurationImportContext.cxx b/xmloff/source/text/XMLFootnoteConfigurationImportContext.cxx index 855ce4a1a97a..2aa5fb939e9f 100644 --- a/xmloff/source/text/XMLFootnoteConfigurationImportContext.cxx +++ b/xmloff/source/text/XMLFootnoteConfigurationImportContext.cxx @@ -109,18 +109,18 @@ void XMLFootnoteConfigHelper::characters( const OUString& rChars ) // XMLFootnoteConfigurationImportContext -const OUStringLiteral gsPropertyAnchorCharStyleName(u"AnchorCharStyleName"); -const OUStringLiteral gsPropertyCharStyleName(u"CharStyleName"); -const OUStringLiteral gsPropertyNumberingType(u"NumberingType"); -const OUStringLiteral gsPropertyPageStyleName(u"PageStyleName"); -const OUStringLiteral gsPropertyParagraphStyleName(u"ParaStyleName"); -const OUStringLiteral gsPropertyPrefix(u"Prefix"); -const OUStringLiteral gsPropertyStartAt(u"StartAt"); -const OUStringLiteral gsPropertySuffix(u"Suffix"); -const OUStringLiteral gsPropertyPositionEndOfDoc(u"PositionEndOfDoc"); -const OUStringLiteral gsPropertyFootnoteCounting(u"FootnoteCounting"); -const OUStringLiteral gsPropertyEndNotice(u"EndNotice"); -const OUStringLiteral gsPropertyBeginNotice(u"BeginNotice"); +constexpr OUStringLiteral gsPropertyAnchorCharStyleName(u"AnchorCharStyleName"); +constexpr OUStringLiteral gsPropertyCharStyleName(u"CharStyleName"); +constexpr OUStringLiteral gsPropertyNumberingType(u"NumberingType"); +constexpr OUStringLiteral gsPropertyPageStyleName(u"PageStyleName"); +constexpr OUStringLiteral gsPropertyParagraphStyleName(u"ParaStyleName"); +constexpr OUStringLiteral gsPropertyPrefix(u"Prefix"); +constexpr OUStringLiteral gsPropertyStartAt(u"StartAt"); +constexpr OUStringLiteral gsPropertySuffix(u"Suffix"); +constexpr OUStringLiteral gsPropertyPositionEndOfDoc(u"PositionEndOfDoc"); +constexpr OUStringLiteral gsPropertyFootnoteCounting(u"FootnoteCounting"); +constexpr OUStringLiteral gsPropertyEndNotice(u"EndNotice"); +constexpr OUStringLiteral gsPropertyBeginNotice(u"BeginNotice"); XMLFootnoteConfigurationImportContext::XMLFootnoteConfigurationImportContext( SvXMLImport& rImport, diff --git a/xmloff/source/text/XMLIndexBibliographyConfigurationContext.cxx b/xmloff/source/text/XMLIndexBibliographyConfigurationContext.cxx index 41f102ba519c..81d9f32af949 100644 --- a/xmloff/source/text/XMLIndexBibliographyConfigurationContext.cxx +++ b/xmloff/source/text/XMLIndexBibliographyConfigurationContext.cxx @@ -45,16 +45,16 @@ using ::com::sun::star::beans::XPropertySet; using ::com::sun::star::lang::XMultiServiceFactory; -const OUStringLiteral gsFieldMaster_Bibliography(u"com.sun.star.text.FieldMaster.Bibliography"); -const OUStringLiteral gsBracketBefore(u"BracketBefore"); -const OUStringLiteral gsBracketAfter(u"BracketAfter"); -const OUStringLiteral gsIsNumberEntries(u"IsNumberEntries"); -const OUStringLiteral gsIsSortByPosition(u"IsSortByPosition"); -const OUStringLiteral gsSortKeys(u"SortKeys"); -const OUStringLiteral gsSortKey(u"SortKey"); -const OUStringLiteral gsIsSortAscending(u"IsSortAscending"); -const OUStringLiteral gsSortAlgorithm(u"SortAlgorithm"); -const OUStringLiteral gsLocale(u"Locale"); +constexpr OUStringLiteral gsFieldMaster_Bibliography(u"com.sun.star.text.FieldMaster.Bibliography"); +constexpr OUStringLiteral gsBracketBefore(u"BracketBefore"); +constexpr OUStringLiteral gsBracketAfter(u"BracketAfter"); +constexpr OUStringLiteral gsIsNumberEntries(u"IsNumberEntries"); +constexpr OUStringLiteral gsIsSortByPosition(u"IsSortByPosition"); +constexpr OUStringLiteral gsSortKeys(u"SortKeys"); +constexpr OUStringLiteral gsSortKey(u"SortKey"); +constexpr OUStringLiteral gsIsSortAscending(u"IsSortAscending"); +constexpr OUStringLiteral gsSortAlgorithm(u"SortAlgorithm"); +constexpr OUStringLiteral gsLocale(u"Locale"); XMLIndexBibliographyConfigurationContext::XMLIndexBibliographyConfigurationContext( SvXMLImport& rImport) : diff --git a/xmloff/source/text/XMLLineNumberingImportContext.cxx b/xmloff/source/text/XMLLineNumberingImportContext.cxx index 7df8c1917c1e..fde276850f9c 100644 --- a/xmloff/source/text/XMLLineNumberingImportContext.cxx +++ b/xmloff/source/text/XMLLineNumberingImportContext.cxx @@ -44,17 +44,17 @@ using ::com::sun::star::xml::sax::XFastAttributeList; using ::com::sun::star::text::XLineNumberingProperties; -const OUStringLiteral gsCharStyleName(u"CharStyleName"); -const OUStringLiteral gsCountEmptyLines(u"CountEmptyLines"); -const OUStringLiteral gsCountLinesInFrames(u"CountLinesInFrames"); -const OUStringLiteral gsDistance(u"Distance"); -const OUStringLiteral gsInterval(u"Interval"); -const OUStringLiteral gsSeparatorText(u"SeparatorText"); -const OUStringLiteral gsNumberPosition(u"NumberPosition"); -const OUStringLiteral gsNumberingType(u"NumberingType"); -const OUStringLiteral gsIsOn(u"IsOn"); -const OUStringLiteral gsRestartAtEachPage(u"RestartAtEachPage"); -const OUStringLiteral gsSeparatorInterval(u"SeparatorInterval"); +constexpr OUStringLiteral gsCharStyleName(u"CharStyleName"); +constexpr OUStringLiteral gsCountEmptyLines(u"CountEmptyLines"); +constexpr OUStringLiteral gsCountLinesInFrames(u"CountLinesInFrames"); +constexpr OUStringLiteral gsDistance(u"Distance"); +constexpr OUStringLiteral gsInterval(u"Interval"); +constexpr OUStringLiteral gsSeparatorText(u"SeparatorText"); +constexpr OUStringLiteral gsNumberPosition(u"NumberPosition"); +constexpr OUStringLiteral gsNumberingType(u"NumberingType"); +constexpr OUStringLiteral gsIsOn(u"IsOn"); +constexpr OUStringLiteral gsRestartAtEachPage(u"RestartAtEachPage"); +constexpr OUStringLiteral gsSeparatorInterval(u"SeparatorInterval"); XMLLineNumberingImportContext::XMLLineNumberingImportContext( SvXMLImport& rImport) diff --git a/xmloff/source/text/XMLTextColumnsContext.cxx b/xmloff/source/text/XMLTextColumnsContext.cxx index e6b0a54fa917..6c5bc01077d3 100644 --- a/xmloff/source/text/XMLTextColumnsContext.cxx +++ b/xmloff/source/text/XMLTextColumnsContext.cxx @@ -210,13 +210,13 @@ XMLTextColumnSepContext_Impl::XMLTextColumnSepContext_Impl( } } -const OUStringLiteral gsSeparatorLineIsOn(u"SeparatorLineIsOn"); -const OUStringLiteral gsSeparatorLineWidth(u"SeparatorLineWidth"); -const OUStringLiteral gsSeparatorLineColor(u"SeparatorLineColor"); -const OUStringLiteral gsSeparatorLineRelativeHeight(u"SeparatorLineRelativeHeight"); -const OUStringLiteral gsSeparatorLineVerticalAlignment(u"SeparatorLineVerticalAlignment"); -const OUStringLiteral gsAutomaticDistance(u"AutomaticDistance"); -const OUStringLiteral gsSeparatorLineStyle(u"SeparatorLineStyle"); +constexpr OUStringLiteral gsSeparatorLineIsOn(u"SeparatorLineIsOn"); +constexpr OUStringLiteral gsSeparatorLineWidth(u"SeparatorLineWidth"); +constexpr OUStringLiteral gsSeparatorLineColor(u"SeparatorLineColor"); +constexpr OUStringLiteral gsSeparatorLineRelativeHeight(u"SeparatorLineRelativeHeight"); +constexpr OUStringLiteral gsSeparatorLineVerticalAlignment(u"SeparatorLineVerticalAlignment"); +constexpr OUStringLiteral gsAutomaticDistance(u"AutomaticDistance"); +constexpr OUStringLiteral gsSeparatorLineStyle(u"SeparatorLineStyle"); XMLTextColumnsContext::XMLTextColumnsContext( SvXMLImport& rImport, sal_Int32 nElement, diff --git a/xmloff/source/text/XMLTextColumnsExport.cxx b/xmloff/source/text/XMLTextColumnsExport.cxx index 85f0009a9639..13f06fde36e6 100644 --- a/xmloff/source/text/XMLTextColumnsExport.cxx +++ b/xmloff/source/text/XMLTextColumnsExport.cxx @@ -43,14 +43,14 @@ using namespace ::com::sun::star::beans; using namespace ::xmloff::token; -const OUStringLiteral gsSeparatorLineIsOn(u"SeparatorLineIsOn"); -const OUStringLiteral gsSeparatorLineWidth(u"SeparatorLineWidth"); -const OUStringLiteral gsSeparatorLineColor(u"SeparatorLineColor"); -const OUStringLiteral gsSeparatorLineRelativeHeight(u"SeparatorLineRelativeHeight"); -const OUStringLiteral gsSeparatorLineVerticalAlignment(u"SeparatorLineVerticalAlignment"); -const OUStringLiteral gsIsAutomatic(u"IsAutomatic"); -const OUStringLiteral gsAutomaticDistance(u"AutomaticDistance"); -const OUStringLiteral gsSeparatorLineStyle(u"SeparatorLineStyle"); +constexpr OUStringLiteral gsSeparatorLineIsOn(u"SeparatorLineIsOn"); +constexpr OUStringLiteral gsSeparatorLineWidth(u"SeparatorLineWidth"); +constexpr OUStringLiteral gsSeparatorLineColor(u"SeparatorLineColor"); +constexpr OUStringLiteral gsSeparatorLineRelativeHeight(u"SeparatorLineRelativeHeight"); +constexpr OUStringLiteral gsSeparatorLineVerticalAlignment(u"SeparatorLineVerticalAlignment"); +constexpr OUStringLiteral gsIsAutomatic(u"IsAutomatic"); +constexpr OUStringLiteral gsAutomaticDistance(u"AutomaticDistance"); +constexpr OUStringLiteral gsSeparatorLineStyle(u"SeparatorLineStyle"); XMLTextColumnsExport::XMLTextColumnsExport( SvXMLExport& rExp ) : rExport( rExp ) diff --git a/xmloff/source/text/XMLTextMasterPageContext.cxx b/xmloff/source/text/XMLTextMasterPageContext.cxx index 9a0350db0974..5803ec5790a8 100644 --- a/xmloff/source/text/XMLTextMasterPageContext.cxx +++ b/xmloff/source/text/XMLTextMasterPageContext.cxx @@ -65,7 +65,7 @@ Reference < XStyle > XMLTextMasterPageContext::Create() return xNewStyle; } -const OUStringLiteral gsFollowStyle( u"FollowStyle" ); +constexpr OUStringLiteral gsFollowStyle( u"FollowStyle" ); XMLTextMasterPageContext::XMLTextMasterPageContext( SvXMLImport& rImport, sal_Int32 /*nElement*/, diff --git a/xmloff/source/text/XMLTextMasterPageExport.cxx b/xmloff/source/text/XMLTextMasterPageExport.cxx index 13851617d8a7..87490a0df2ee 100644 --- a/xmloff/source/text/XMLTextMasterPageExport.cxx +++ b/xmloff/source/text/XMLTextMasterPageExport.cxx @@ -32,17 +32,17 @@ using namespace ::com::sun::star::text; using namespace ::com::sun::star::beans; using namespace ::xmloff::token; -const OUStringLiteral gsHeaderText( u"HeaderText" ); -const OUStringLiteral gsHeaderOn( u"HeaderIsOn" ); -const OUStringLiteral gsHeaderShareContent( u"HeaderIsShared" ); -const OUStringLiteral gsHeaderTextFirst( u"HeaderTextFirst" ); -const OUStringLiteral gsHeaderTextLeft( u"HeaderTextLeft" ); -const OUStringLiteral gsFirstShareContent( u"FirstIsShared" ); -const OUStringLiteral gsFooterText( u"FooterText" ); -const OUStringLiteral gsFooterOn( u"FooterIsOn" ); -const OUStringLiteral gsFooterShareContent( u"FooterIsShared" ); -const OUStringLiteral gsFooterTextFirst( u"FooterTextFirst" ); -const OUStringLiteral gsFooterTextLeft( u"FooterTextLeft" ); +constexpr OUStringLiteral gsHeaderText( u"HeaderText" ); +constexpr OUStringLiteral gsHeaderOn( u"HeaderIsOn" ); +constexpr OUStringLiteral gsHeaderShareContent( u"HeaderIsShared" ); +constexpr OUStringLiteral gsHeaderTextFirst( u"HeaderTextFirst" ); +constexpr OUStringLiteral gsHeaderTextLeft( u"HeaderTextLeft" ); +constexpr OUStringLiteral gsFirstShareContent( u"FirstIsShared" ); +constexpr OUStringLiteral gsFooterText( u"FooterText" ); +constexpr OUStringLiteral gsFooterOn( u"FooterIsOn" ); +constexpr OUStringLiteral gsFooterShareContent( u"FooterIsShared" ); +constexpr OUStringLiteral gsFooterTextFirst( u"FooterTextFirst" ); +constexpr OUStringLiteral gsFooterTextLeft( u"FooterTextLeft" ); XMLTextMasterPageExport::XMLTextMasterPageExport( SvXMLExport& rExp ) : XMLPageExport( rExp ) diff --git a/xmloff/source/text/XMLTextShapeImportHelper.cxx b/xmloff/source/text/XMLTextShapeImportHelper.cxx index 78488da2099b..506ad146e4ff 100644 --- a/xmloff/source/text/XMLTextShapeImportHelper.cxx +++ b/xmloff/source/text/XMLTextShapeImportHelper.cxx @@ -41,9 +41,9 @@ using namespace ::com::sun::star::text; using namespace ::com::sun::star::container; using namespace ::com::sun::star::xml::sax; -const OUStringLiteral gsAnchorType(u"AnchorType"); -const OUStringLiteral gsAnchorPageNo(u"AnchorPageNo"); -const OUStringLiteral gsVertOrientPosition(u"VertOrientPosition"); +constexpr OUStringLiteral gsAnchorType(u"AnchorType"); +constexpr OUStringLiteral gsAnchorPageNo(u"AnchorPageNo"); +constexpr OUStringLiteral gsVertOrientPosition(u"VertOrientPosition"); XMLTextShapeImportHelper::XMLTextShapeImportHelper( SvXMLImport& rImp ) : diff --git a/xmloff/source/text/XMLTextShapeStyleContext.cxx b/xmloff/source/text/XMLTextShapeStyleContext.cxx index a7c7049c025d..27accc1ed1c2 100644 --- a/xmloff/source/text/XMLTextShapeStyleContext.cxx +++ b/xmloff/source/text/XMLTextShapeStyleContext.cxx @@ -134,7 +134,7 @@ void XMLTextShapeStyleContext::SetAttribute( sal_uInt16 nPrefixKey, } -const OUStringLiteral gsIsAutoUpdate( u"IsAutoUpdate" ); +constexpr OUStringLiteral gsIsAutoUpdate( u"IsAutoUpdate" ); XMLTextShapeStyleContext::XMLTextShapeStyleContext( SvXMLImport& rImport, SvXMLStylesContext& rStyles, XmlStyleFamily nFamily ) : diff --git a/xmloff/source/text/txtflde.cxx b/xmloff/source/text/txtflde.cxx index fa4c6541d00a..f4d32a263144 100644 --- a/xmloff/source/text/txtflde.cxx +++ b/xmloff/source/text/txtflde.cxx @@ -295,78 +295,78 @@ static Sequence<OUString> GetStringSequenceProperty( // service names -const OUStringLiteral gsServicePrefix(u"com.sun.star.text.textfield."); -const OUStringLiteral gsFieldMasterPrefix(u"com.sun.star.text.FieldMaster."); -const OUStringLiteral gsPresentationServicePrefix(u"com.sun.star.presentation.TextField."); +constexpr OUStringLiteral gsServicePrefix(u"com.sun.star.text.textfield."); +constexpr OUStringLiteral gsFieldMasterPrefix(u"com.sun.star.text.FieldMaster."); +constexpr OUStringLiteral gsPresentationServicePrefix(u"com.sun.star.presentation.TextField."); // property names -const OUStringLiteral gsPropertyAdjust(u"Adjust"); -const OUStringLiteral gsPropertyAuthor(u"Author"); -const OUStringLiteral gsPropertyChapterFormat(u"ChapterFormat"); -const OUStringLiteral gsPropertyChapterNumberingLevel(u"ChapterNumberingLevel"); -const OUStringLiteral gsPropertyCharStyleNames(u"CharStyleNames"); -const OUStringLiteral gsPropertyCondition(u"Condition"); -const OUStringLiteral gsPropertyContent(u"Content"); -const OUStringLiteral gsPropertyDataBaseName(u"DataBaseName"); -const OUStringLiteral gsPropertyDataBaseURL(u"DataBaseURL"); -const OUStringLiteral gsPropertyDataColumnName(u"DataColumnName"); -const OUStringLiteral gsPropertyDataCommandType(u"DataCommandType"); -const OUStringLiteral gsPropertyDataTableName(u"DataTableName"); -const OUStringLiteral gsPropertyDateTime(u"DateTime"); -const OUStringLiteral gsPropertyDateTimeValue(u"DateTimeValue"); -const OUStringLiteral gsPropertyDDECommandElement(u"DDECommandElement"); -const OUStringLiteral gsPropertyDDECommandFile(u"DDECommandFile"); -const OUStringLiteral gsPropertyDDECommandType(u"DDECommandType"); -const OUStringLiteral gsPropertyDependentTextFields(u"DependentTextFields"); -const OUStringLiteral gsPropertyFalseContent(u"FalseContent"); -const OUStringLiteral gsPropertyFields(u"Fields"); -const OUStringLiteral gsPropertyFieldSubType(u"UserDataType"); -const OUStringLiteral gsPropertyFileFormat(u"FileFormat"); -const OUStringLiteral gsPropertyFullName(u"FullName"); -const OUStringLiteral gsPropertyHint(u"Hint"); -const OUStringLiteral gsPropertyInitials(u"Initials"); -const OUStringLiteral gsPropertyInstanceName(u"InstanceName"); -const OUStringLiteral gsPropertyIsAutomaticUpdate(u"IsAutomaticUpdate"); -const OUStringLiteral gsPropertyIsConditionTrue(u"IsConditionTrue"); -const OUStringLiteral gsPropertyIsDataBaseFormat(u"DataBaseFormat"); -const OUStringLiteral gsPropertyIsDate(u"IsDate"); -const OUStringLiteral gsPropertyIsExpression(u"IsExpression"); -const OUStringLiteral gsPropertyIsFixed(u"IsFixed"); -const OUStringLiteral gsPropertyIsFixedLanguage(u"IsFixedLanguage"); -const OUStringLiteral gsPropertyIsHidden(u"IsHidden"); -const OUStringLiteral gsPropertyIsInput(u"Input"); -const OUStringLiteral gsPropertyIsShowFormula(u"IsShowFormula"); -const OUStringLiteral gsPropertyIsVisible(u"IsVisible"); -const OUStringLiteral gsPropertyItems(u"Items"); -const OUStringLiteral gsPropertyLevel(u"Level"); -const OUStringLiteral gsPropertyMeasureKind(u"Kind"); -const OUStringLiteral gsPropertyName(u"Name"); -const OUStringLiteral gsPropertyNumberFormat(u"NumberFormat"); -const OUStringLiteral gsPropertyNumberingSeparator(u"NumberingSeparator"); -const OUStringLiteral gsPropertyNumberingType(u"NumberingType"); -const OUStringLiteral gsPropertyOffset(u"Offset"); -const OUStringLiteral gsPropertyOn(u"On"); -const OUStringLiteral gsPropertyPlaceholderType(u"PlaceHolderType"); -const OUStringLiteral gsPropertyReferenceFieldPart(u"ReferenceFieldPart"); -const OUStringLiteral gsPropertyReferenceFieldSource(u"ReferenceFieldSource"); -const OUStringLiteral gsPropertyReferenceFieldLanguage(u"ReferenceFieldLanguage"); -const OUStringLiteral gsPropertyScriptType(u"ScriptType"); -const OUStringLiteral gsPropertySelectedItem(u"SelectedItem"); -const OUStringLiteral gsPropertySequenceNumber(u"SequenceNumber"); -const OUStringLiteral gsPropertySequenceValue(u"SequenceValue"); -const OUStringLiteral gsPropertySetNumber(u"SetNumber"); -const OUStringLiteral gsPropertySourceName(u"SourceName"); -const OUStringLiteral gsPropertySubType(u"SubType"); -const OUStringLiteral gsPropertyTargetFrame(u"TargetFrame"); -const OUStringLiteral gsPropertyTrueContent(u"TrueContent"); -const OUStringLiteral gsPropertyURL(u"URL"); -const OUStringLiteral gsPropertyURLContent(u"URLContent"); -const OUStringLiteral gsPropertyUserText(u"UserText"); -const OUStringLiteral gsPropertyValue(u"Value"); -const OUStringLiteral gsPropertyVariableName(u"VariableName"); -const OUStringLiteral gsPropertyHelp(u"Help"); -const OUStringLiteral gsPropertyTooltip(u"Tooltip"); -const OUStringLiteral gsPropertyTextRange(u"TextRange"); +constexpr OUStringLiteral gsPropertyAdjust(u"Adjust"); +constexpr OUStringLiteral gsPropertyAuthor(u"Author"); +constexpr OUStringLiteral gsPropertyChapterFormat(u"ChapterFormat"); +constexpr OUStringLiteral gsPropertyChapterNumberingLevel(u"ChapterNumberingLevel"); +constexpr OUStringLiteral gsPropertyCharStyleNames(u"CharStyleNames"); +constexpr OUStringLiteral gsPropertyCondition(u"Condition"); +constexpr OUStringLiteral gsPropertyContent(u"Content"); +constexpr OUStringLiteral gsPropertyDataBaseName(u"DataBaseName"); +constexpr OUStringLiteral gsPropertyDataBaseURL(u"DataBaseURL"); +constexpr OUStringLiteral gsPropertyDataColumnName(u"DataColumnName"); +constexpr OUStringLiteral gsPropertyDataCommandType(u"DataCommandType"); +constexpr OUStringLiteral gsPropertyDataTableName(u"DataTableName"); +constexpr OUStringLiteral gsPropertyDateTime(u"DateTime"); +constexpr OUStringLiteral gsPropertyDateTimeValue(u"DateTimeValue"); +constexpr OUStringLiteral gsPropertyDDECommandElement(u"DDECommandElement"); +constexpr OUStringLiteral gsPropertyDDECommandFile(u"DDECommandFile"); +constexpr OUStringLiteral gsPropertyDDECommandType(u"DDECommandType"); +constexpr OUStringLiteral gsPropertyDependentTextFields(u"DependentTextFields"); +constexpr OUStringLiteral gsPropertyFalseContent(u"FalseContent"); +constexpr OUStringLiteral gsPropertyFields(u"Fields"); +constexpr OUStringLiteral gsPropertyFieldSubType(u"UserDataType"); +constexpr OUStringLiteral gsPropertyFileFormat(u"FileFormat"); +constexpr OUStringLiteral gsPropertyFullName(u"FullName"); +constexpr OUStringLiteral gsPropertyHint(u"Hint"); +constexpr OUStringLiteral gsPropertyInitials(u"Initials"); +constexpr OUStringLiteral gsPropertyInstanceName(u"InstanceName"); +constexpr OUStringLiteral gsPropertyIsAutomaticUpdate(u"IsAutomaticUpdate"); +constexpr OUStringLiteral gsPropertyIsConditionTrue(u"IsConditionTrue"); +constexpr OUStringLiteral gsPropertyIsDataBaseFormat(u"DataBaseFormat"); +constexpr OUStringLiteral gsPropertyIsDate(u"IsDate"); +constexpr OUStringLiteral gsPropertyIsExpression(u"IsExpression"); +constexpr OUStringLiteral gsPropertyIsFixed(u"IsFixed"); +constexpr OUStringLiteral gsPropertyIsFixedLanguage(u"IsFixedLanguage"); +constexpr OUStringLiteral gsPropertyIsHidden(u"IsHidden"); +constexpr OUStringLiteral gsPropertyIsInput(u"Input"); +constexpr OUStringLiteral gsPropertyIsShowFormula(u"IsShowFormula"); +constexpr OUStringLiteral gsPropertyIsVisible(u"IsVisible"); +constexpr OUStringLiteral gsPropertyItems(u"Items"); +constexpr OUStringLiteral gsPropertyLevel(u"Level"); +constexpr OUStringLiteral gsPropertyMeasureKind(u"Kind"); +constexpr OUStringLiteral gsPropertyName(u"Name"); +constexpr OUStringLiteral gsPropertyNumberFormat(u"NumberFormat"); +constexpr OUStringLiteral gsPropertyNumberingSeparator(u"NumberingSeparator"); +constexpr OUStringLiteral gsPropertyNumberingType(u"NumberingType"); +constexpr OUStringLiteral gsPropertyOffset(u"Offset"); +constexpr OUStringLiteral gsPropertyOn(u"On"); +constexpr OUStringLiteral gsPropertyPlaceholderType(u"PlaceHolderType"); +constexpr OUStringLiteral gsPropertyReferenceFieldPart(u"ReferenceFieldPart"); +constexpr OUStringLiteral gsPropertyReferenceFieldSource(u"ReferenceFieldSource"); +constexpr OUStringLiteral gsPropertyReferenceFieldLanguage(u"ReferenceFieldLanguage"); +constexpr OUStringLiteral gsPropertyScriptType(u"ScriptType"); +constexpr OUStringLiteral gsPropertySelectedItem(u"SelectedItem"); +constexpr OUStringLiteral gsPropertySequenceNumber(u"SequenceNumber"); +constexpr OUStringLiteral gsPropertySequenceValue(u"SequenceValue"); +constexpr OUStringLiteral gsPropertySetNumber(u"SetNumber"); +constexpr OUStringLiteral gsPropertySourceName(u"SourceName"); +constexpr OUStringLiteral gsPropertySubType(u"SubType"); +constexpr OUStringLiteral gsPropertyTargetFrame(u"TargetFrame"); +constexpr OUStringLiteral gsPropertyTrueContent(u"TrueContent"); +constexpr OUStringLiteral gsPropertyURL(u"URL"); +constexpr OUStringLiteral gsPropertyURLContent(u"URLContent"); +constexpr OUStringLiteral gsPropertyUserText(u"UserText"); +constexpr OUStringLiteral gsPropertyValue(u"Value"); +constexpr OUStringLiteral gsPropertyVariableName(u"VariableName"); +constexpr OUStringLiteral gsPropertyHelp(u"Help"); +constexpr OUStringLiteral gsPropertyTooltip(u"Tooltip"); +constexpr OUStringLiteral gsPropertyTextRange(u"TextRange"); XMLTextFieldExport::XMLTextFieldExport( SvXMLExport& rExp, std::unique_ptr<XMLPropertyState> pCombinedCharState) diff --git a/xmloff/source/text/txtfldi.cxx b/xmloff/source/text/txtfldi.cxx index 958ebd6b4a92..ff54d40bc0f9 100644 --- a/xmloff/source/text/txtfldi.cxx +++ b/xmloff/source/text/txtfldi.cxx @@ -535,7 +535,7 @@ void XMLTextFieldImportContext::ForceUpdate( // XMLSenderFieldImportContext -const OUStringLiteral gsPropertyFieldSubType(u"UserDataType"); +constexpr OUStringLiteral gsPropertyFieldSubType(u"UserDataType"); XMLSenderFieldImportContext::XMLSenderFieldImportContext( SvXMLImport& rImport, XMLTextImportHelper& rHlp, @@ -654,7 +654,7 @@ void XMLSenderFieldImportContext::PrepareField( // XMLAuthorFieldImportContext -const OUStringLiteral gsPropertyAuthorFullName(u"FullName"); +constexpr OUStringLiteral gsPropertyAuthorFullName(u"FullName"); XMLAuthorFieldImportContext::XMLAuthorFieldImportContext( SvXMLImport& rImport, XMLTextImportHelper& rHlp, @@ -727,7 +727,7 @@ SvXMLEnumMapEntry<PageNumberType> const lcl_aSelectPageAttrMap[] = { XML_TOKEN_INVALID, PageNumberType(0) }, }; -const OUStringLiteral gsPropertyUserText(u"UserText"); +constexpr OUStringLiteral gsPropertyUserText(u"UserText"); XMLPageContinuationImportContext::XMLPageContinuationImportContext( SvXMLImport& rImport, XMLTextImportHelper& rHlp, sal_uInt16 nPrfx, @@ -878,8 +878,8 @@ void XMLPageNumberImportContext::PrepareField( // Placeholder -const OUStringLiteral gsPropertyPlaceholderType(u"PlaceHolderType"); -const OUStringLiteral gsPropertyPlaceholder(u"PlaceHolder"); +constexpr OUStringLiteral gsPropertyPlaceholderType(u"PlaceHolderType"); +constexpr OUStringLiteral gsPropertyPlaceholder(u"PlaceHolder"); XMLPlaceholderFieldImportContext::XMLPlaceholderFieldImportContext( SvXMLImport& rImport, XMLTextImportHelper& rHlp, @@ -960,7 +960,7 @@ void XMLPlaceholderFieldImportContext::PrepareField( // time field -const OUStringLiteral gsPropertyAdjust(u"Adjust"); +constexpr OUStringLiteral gsPropertyAdjust(u"Adjust"); XMLTimeFieldImportContext::XMLTimeFieldImportContext( SvXMLImport& rImport, XMLTextImportHelper& rHlp, @@ -1136,11 +1136,11 @@ void XMLDateFieldImportContext::ProcessAttribute( // database field superclass -const OUStringLiteral gsPropertyDataBaseName(u"DataBaseName"); -const OUStringLiteral gsPropertyDataBaseURL(u"DataBaseURL"); -const OUStringLiteral gsPropertyTableName(u"DataTableName"); -const OUStringLiteral gsPropertyDataCommandType(u"DataCommandType"); -const OUStringLiteral gsPropertyIsVisible(u"IsVisible"); +constexpr OUStringLiteral gsPropertyDataBaseName(u"DataBaseName"); +constexpr OUStringLiteral gsPropertyDataBaseURL(u"DataBaseURL"); +constexpr OUStringLiteral gsPropertyTableName(u"DataTableName"); +constexpr OUStringLiteral gsPropertyDataCommandType(u"DataCommandType"); +constexpr OUStringLiteral gsPropertyIsVisible(u"IsVisible"); XMLDatabaseFieldImportContext::XMLDatabaseFieldImportContext( SvXMLImport& rImport, XMLTextImportHelper& rHlp, @@ -1604,7 +1604,7 @@ const char* XMLSimpleDocInfoImportContext::MapTokenToServiceName( // revision field -const OUStringLiteral sPropertyRevision(u"Revision"); +constexpr OUStringLiteral sPropertyRevision(u"Revision"); XMLRevisionDocInfoImportContext::XMLRevisionDocInfoImportContext( SvXMLImport& rImport, XMLTextImportHelper& rHlp, sal_uInt16 nPrfx, @@ -1874,9 +1874,9 @@ void XMLHiddenParagraphImportContext::PrepareField( // import conditional text (<text:conditional-text>) -const OUStringLiteral gsPropertyTrueContent(u"TrueContent"); -const OUStringLiteral gsPropertyFalseContent(u"FalseContent"); -const OUStringLiteral gsPropertyIsConditionTrue(u"IsConditionTrue"); +constexpr OUStringLiteral gsPropertyTrueContent(u"TrueContent"); +constexpr OUStringLiteral gsPropertyFalseContent(u"FalseContent"); +constexpr OUStringLiteral gsPropertyIsConditionTrue(u"IsConditionTrue"); XMLConditionalTextImportContext::XMLConditionalTextImportContext( SvXMLImport& rImport, XMLTextImportHelper& rHlp, @@ -2159,8 +2159,8 @@ const SvXMLEnumMapEntry<sal_uInt16> aChapterDisplayMap[] = { XML_TOKEN_INVALID, 0 } }; -const OUStringLiteral gsPropertyChapterFormat(u"ChapterFormat"); -const OUStringLiteral gsPropertyLevel(u"Level"); +constexpr OUStringLiteral gsPropertyChapterFormat(u"ChapterFormat"); +constexpr OUStringLiteral gsPropertyLevel(u"Level"); XMLChapterImportContext::XMLChapterImportContext( SvXMLImport& rImport, XMLTextImportHelper& rHlp, |