From 48a8d6d8434908690bc2a51d27f1051bd550c9b0 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 27 Jun 2016 15:08:50 +0200 Subject: loplugin:singlevalfields in various Change-Id: Ia0d8f463a4dba9ec63aa0159441e3e607dd3bf5e Reviewed-on: https://gerrit.libreoffice.org/26738 Tested-by: Jenkins Reviewed-by: Noel Grandin --- unotools/source/config/moduleoptions.cxx | 27 --------------------------- 1 file changed, 27 deletions(-) (limited to 'unotools') diff --git a/unotools/source/config/moduleoptions.cxx b/unotools/source/config/moduleoptions.cxx index fa9d97de00ba..a07e472f5a53 100644 --- a/unotools/source/config/moduleoptions.cxx +++ b/unotools/source/config/moduleoptions.cxx @@ -112,10 +112,7 @@ struct FactoryInfo sDefaultFilter.clear(); nIcon = 0; bChangedTemplateFile = false; - bChangedWindowAttributes = false; - bChangedEmptyDocumentURL = false; bChangedDefaultFilter = false; - bChangedIcon = false; bDefaultFilterReadonly = false; } @@ -147,37 +144,16 @@ struct FactoryInfo ++nRealyChanged; } - if( bChangedWindowAttributes ) - { - lProperties[nRealyChanged].Name = sNodeBase + PROPERTYNAME_WINDOWATTRIBUTES; - lProperties[nRealyChanged].Value <<= sWindowAttributes; - ++nRealyChanged; - } - if( bChangedEmptyDocumentURL ) - { - lProperties[nRealyChanged].Name = sNodeBase + PROPERTYNAME_EMPTYDOCUMENTURL; - lProperties[nRealyChanged].Value <<= sEmptyDocumentURL; - ++nRealyChanged; - } if( bChangedDefaultFilter ) { lProperties[nRealyChanged].Name = sNodeBase + PROPERTYNAME_DEFAULTFILTER; lProperties[nRealyChanged].Value <<= sDefaultFilter; ++nRealyChanged; } - if( bChangedIcon ) - { - lProperties[nRealyChanged].Name = sNodeBase + PROPERTYNAME_ICON; - lProperties[nRealyChanged].Value <<= nIcon; - ++nRealyChanged; - } // Don't forget to reset changed flags! Otherwise we save it again and again and ... bChangedTemplateFile = false; - bChangedWindowAttributes = false; - bChangedEmptyDocumentURL = false; bChangedDefaultFilter = false; - bChangedIcon = false; lProperties.realloc( nRealyChanged ); return lProperties; @@ -254,10 +230,7 @@ struct FactoryInfo sal_Int32 nIcon; bool bChangedTemplateFile :1; - bool bChangedWindowAttributes :1; - bool bChangedEmptyDocumentURL :1; bool bChangedDefaultFilter :1; - bool bChangedIcon :1; bool bDefaultFilterReadonly :1; css::uno::Reference< css::util::XStringSubstitution > xSubstVars; -- cgit