summaryrefslogtreecommitdiff
path: root/sw/source/core/fields
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-05-30 15:14:03 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-05-30 15:14:03 +0200
commit8fec9e7e4ca97e14551a737583226f89b0c6eecd (patch)
tree97b0c9e68fd2c3ad75f9b7d52a76a134522b8350 /sw/source/core/fields
parente630df7853a62225cd77fc4262689ef5607d2907 (diff)
Some clean up of uses of css::uno::Any::setValue
Change-Id: I04e8aef35a6083b61d775c8eb3f96757da2b31bd
Diffstat (limited to 'sw/source/core/fields')
-rw-r--r--sw/source/core/fields/docufld.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/sw/source/core/fields/docufld.cxx b/sw/source/core/fields/docufld.cxx
index f20e418784b7..578fa595acdb 100644
--- a/sw/source/core/fields/docufld.cxx
+++ b/sw/source/core/fields/docufld.cxx
@@ -258,7 +258,7 @@ bool SwPageNumberField::QueryValue( uno::Any& rAny, sal_uInt16 nWhichId ) const
eType = text::PageNumberType_PREV;
else if(nSubType == PG_NEXT)
eType = text::PageNumberType_NEXT;
- rAny.setValue(&eType, cppu::UnoType<text::PageNumberType>::get());
+ rAny <<= eType;
}
break;
case FIELD_PROP_PAR1:
@@ -1192,7 +1192,7 @@ bool SwDocInfoField::QueryValue( uno::Any& rAny, sal_uInt16 nWhichId ) const
case FIELD_PROP_DOUBLE:
{
double fVal = GetValue();
- rAny.setValue(&fVal, cppu::UnoType<decltype(fVal)>::get());
+ rAny <<= fVal;
}
break;
case FIELD_PROP_PAR3:
@@ -1771,8 +1771,7 @@ bool SwPostItField::QueryValue( uno::Any& rAny, sal_uInt16 nWhichId ) const
}
case FIELD_PROP_DATE:
{
- css::util::Date aSetDate = aDateTime.GetUNODate();
- rAny.setValue(&aSetDate, ::cppu::UnoType<util::Date>::get());
+ rAny <<= aDateTime.GetUNODate();
}
break;
case FIELD_PROP_DATE_TIME: