summaryrefslogtreecommitdiff
path: root/unotools
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-06-27 15:08:50 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-06-28 11:21:17 +0000
commit48a8d6d8434908690bc2a51d27f1051bd550c9b0 (patch)
tree066f8fc9753bdba62f87f205baface6e729857bf /unotools
parentf7d6f3e4e3fda3cd4936880918e2831246634a3e (diff)
loplugin:singlevalfields in various
Change-Id: Ia0d8f463a4dba9ec63aa0159441e3e607dd3bf5e Reviewed-on: https://gerrit.libreoffice.org/26738 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'unotools')
-rw-r--r--unotools/source/config/moduleoptions.cxx27
1 files changed, 0 insertions, 27 deletions
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;