summaryrefslogtreecommitdiff
path: root/unotools/source/config/misccfg.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'unotools/source/config/misccfg.cxx')
-rw-r--r--unotools/source/config/misccfg.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/unotools/source/config/misccfg.cxx b/unotools/source/config/misccfg.cxx
index c32a90cb565d..e2ef188fdea3 100644
--- a/unotools/source/config/misccfg.cxx
+++ b/unotools/source/config/misccfg.cxx
@@ -161,14 +161,13 @@ void SfxMiscCfg::ImplCommit()
Sequence<Any> aValues(rNames.getLength());
Any* pValues = aValues.getArray();
- const Type& rType = cppu::UnoType<bool>::get();
for(int nProp = 0; nProp < rNames.getLength(); nProp++)
{
switch(nProp)
{
- case 0: pValues[nProp].setValue(&bPaperSize, rType);break; //"Print/Warning/PaperSize",
- case 1: pValues[nProp].setValue(&bPaperOrientation, rType);break; //"Print/Warning/PaperOrientation",
- case 2: pValues[nProp].setValue(&bNotFound, rType);break; //"Print/Warning/NotFound",
+ case 0: pValues[nProp] <<= bPaperSize;break; //"Print/Warning/PaperSize",
+ case 1: pValues[nProp] <<= bPaperOrientation;break; //"Print/Warning/PaperOrientation",
+ case 2: pValues[nProp] <<= bNotFound;break; //"Print/Warning/NotFound",
case 3: pValues[nProp] <<= nYear2000;break; //"DateFormat/TwoDigitYear",
}
}