sw/source/filter/xml/xmlimp.cxx | 67 ++++++++++++++++++++-------------------- 1 file changed, 34 insertions(+), 33 deletions(-)
New commits: commit c57e759cb7729896271c0bc521d5cb9626c2c570 Author: Michael Weghorn <m.wegh...@posteo.de> AuthorDate: Fri Nov 15 12:02:44 2019 +0100 Commit: Michael Weghorn <m.wegh...@posteo.de> CommitDate: Wed Nov 20 15:47:29 2019 +0100 Use initializer list for unordered_set here Change-Id: I9099308834d7bf463bd92c07edc86b8e0aa1fe84 Reviewed-on: https://gerrit.libreoffice.org/82785 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.wegh...@posteo.de> (cherry picked from commit 469888757b751f6b510d98bf5456f041da3e44b5) Reviewed-on: https://gerrit.libreoffice.org/83273 diff --git a/sw/source/filter/xml/xmlimp.cxx b/sw/source/filter/xml/xmlimp.cxx index 6b71e5ae372b..5ca2c262496e 100644 --- a/sw/source/filter/xml/xmlimp.cxx +++ b/sw/source/filter/xml/xmlimp.cxx @@ -1317,39 +1317,40 @@ void SwXMLImport::SetConfigurationSettings(const Sequence < PropertyValue > & aC std::unordered_set< OUString > aExcludeAlways; aExcludeAlways.insert("LinkUpdateMode"); // this should contain things that are actually user-settable, via Tools->Options - std::unordered_set< OUString > aExcludeWhenNotLoadingUserSettings; - aExcludeWhenNotLoadingUserSettings.insert("ForbiddenCharacters"); - aExcludeWhenNotLoadingUserSettings.insert("IsKernAsianPunctuation"); - aExcludeWhenNotLoadingUserSettings.insert("CharacterCompressionType"); - aExcludeWhenNotLoadingUserSettings.insert("FieldAutoUpdate"); - aExcludeWhenNotLoadingUserSettings.insert("ChartAutoUpdate"); - aExcludeWhenNotLoadingUserSettings.insert("AddParaTableSpacing"); - aExcludeWhenNotLoadingUserSettings.insert("AddParaTableSpacingAtStart"); - aExcludeWhenNotLoadingUserSettings.insert("PrintAnnotationMode"); - aExcludeWhenNotLoadingUserSettings.insert("PrintBlackFonts"); - aExcludeWhenNotLoadingUserSettings.insert("PrintControls"); - aExcludeWhenNotLoadingUserSettings.insert("PrintDrawings"); - aExcludeWhenNotLoadingUserSettings.insert("PrintGraphics"); - aExcludeWhenNotLoadingUserSettings.insert("PrintHiddenText"); - aExcludeWhenNotLoadingUserSettings.insert("PrintLeftPages"); - aExcludeWhenNotLoadingUserSettings.insert("PrintPageBackground"); - aExcludeWhenNotLoadingUserSettings.insert("PrintProspect"); - aExcludeWhenNotLoadingUserSettings.insert("PrintReversed"); - aExcludeWhenNotLoadingUserSettings.insert("PrintRightPages"); - aExcludeWhenNotLoadingUserSettings.insert("PrintFaxName"); - aExcludeWhenNotLoadingUserSettings.insert("PrintPaperFromSetup"); - aExcludeWhenNotLoadingUserSettings.insert("PrintTables"); - aExcludeWhenNotLoadingUserSettings.insert("PrintTextPlaceholder"); - aExcludeWhenNotLoadingUserSettings.insert("PrintSingleJobs"); - aExcludeWhenNotLoadingUserSettings.insert("UpdateFromTemplate"); - aExcludeWhenNotLoadingUserSettings.insert("PrinterIndependentLayout"); - aExcludeWhenNotLoadingUserSettings.insert("PrintEmptyPages"); - aExcludeWhenNotLoadingUserSettings.insert("ConsiderTextWrapOnObjPos"); - aExcludeWhenNotLoadingUserSettings.insert("DoNotJustifyLinesWithManualBreak"); - aExcludeWhenNotLoadingUserSettings.insert("ProtectForm"); - aExcludeWhenNotLoadingUserSettings.insert("MsWordCompTrailingBlanks"); - aExcludeWhenNotLoadingUserSettings.insert("SubtractFlysAnchoredAtFlys"); - aExcludeWhenNotLoadingUserSettings.insert("EmptyDbFieldHidesPara"); + std::unordered_set< OUString > aExcludeWhenNotLoadingUserSettings { + "ForbiddenCharacters", + "IsKernAsianPunctuation", + "CharacterCompressionType", + "FieldAutoUpdate", + "ChartAutoUpdate", + "AddParaTableSpacing", + "AddParaTableSpacingAtStart", + "PrintAnnotationMode", + "PrintBlackFonts", + "PrintControls", + "PrintDrawings", + "PrintGraphics", + "PrintHiddenText", + "PrintLeftPages", + "PrintPageBackground", + "PrintProspect", + "PrintReversed", + "PrintRightPages", + "PrintFaxName", + "PrintPaperFromSetup", + "PrintTables", + "PrintTextPlaceholder", + "PrintSingleJobs", + "UpdateFromTemplate", + "PrinterIndependentLayout", + "PrintEmptyPages", + "ConsiderTextWrapOnObjPos", + "DoNotJustifyLinesWithManualBreak", + "ProtectForm", + "MsWordCompTrailingBlanks", + "SubtractFlysAnchoredAtFlys", + "EmptyDbFieldHidesPara" + }; SvtSaveOptions aSaveOpt; bool bIsUserSetting = aSaveOpt.IsLoadUserSettings(); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits