diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-05-30 15:14:03 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-05-30 15:14:03 +0200 |
commit | 8fec9e7e4ca97e14551a737583226f89b0c6eecd (patch) | |
tree | 97b0c9e68fd2c3ad75f9b7d52a76a134522b8350 /stoc | |
parent | e630df7853a62225cd77fc4262689ef5607d2907 (diff) |
Some clean up of uses of css::uno::Any::setValue
Change-Id: I04e8aef35a6083b61d775c8eb3f96757da2b31bd
Diffstat (limited to 'stoc')
-rw-r--r-- | stoc/source/typeconv/convert.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/stoc/source/typeconv/convert.cxx b/stoc/source/typeconv/convert.cxx index 2a6cc736a557..7b21b926d543 100644 --- a/stoc/source/typeconv/convert.cxx +++ b/stoc/source/typeconv/convert.cxx @@ -825,9 +825,8 @@ Any TypeConverter_Impl::convertToSimpleType( const Any& rVal, TypeClass aDestina } if (nPos >= 0) { - aRet.setValue( - &reinterpret_cast<typelib_EnumTypeDescription *>(aEnumTD.get())->ppEnumNames[nPos], - cppu::UnoType<OUString>::get()); + aRet <<= OUString::unacquired( + &reinterpret_cast<typelib_EnumTypeDescription *>(aEnumTD.get())->ppEnumNames[nPos]); } else { |