diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-02-24 11:22:18 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-02-28 10:17:47 +0000 |
commit | 198c41c4fe8be4ce8a6ddab43ae0c5f17a4889ac (patch) | |
tree | 041d55126e9770b81f68fadfaaa69e82313786b3 /writerfilter/source/rtftok/rtfdocumentimpl.cxx | |
parent | Keep the order that is in the header. (diff) | |
download | core-198c41c4fe8be4ce8a6ddab43ae0c5f17a4889ac.tar.gz core-198c41c4fe8be4ce8a6ddab43ae0c5f17a4889ac.zip |
new loplugin unoany
Change-Id: I5d6c4a67cb2a09e7cd5bd620c6b262d188701b89
Reviewed-on: https://gerrit.libreoffice.org/34714
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'writerfilter/source/rtftok/rtfdocumentimpl.cxx')
-rw-r--r-- | writerfilter/source/rtftok/rtfdocumentimpl.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/writerfilter/source/rtftok/rtfdocumentimpl.cxx b/writerfilter/source/rtftok/rtfdocumentimpl.cxx index 05212b96a12c..719d82ce35ff 100644 --- a/writerfilter/source/rtftok/rtfdocumentimpl.cxx +++ b/writerfilter/source/rtftok/rtfdocumentimpl.cxx @@ -2704,15 +2704,15 @@ RTFError RTFDocumentImpl::popState() OUString aStaticVal = m_aStates.top().pDestinationText->makeStringAndClear(); uno::Any aAny; if (m_aStates.top().aPropType == cppu::UnoType<OUString>::get()) - aAny = uno::makeAny(aStaticVal); + aAny <<= aStaticVal; else if (m_aStates.top().aPropType == cppu::UnoType<sal_Int32>::get()) - aAny = uno::makeAny(aStaticVal.toInt32()); + aAny <<= aStaticVal.toInt32(); else if (m_aStates.top().aPropType == cppu::UnoType<bool>::get()) - aAny = uno::makeAny(aStaticVal.toBoolean()); + aAny <<= aStaticVal.toBoolean(); else if (m_aStates.top().aPropType == cppu::UnoType<util::DateTime>::get()) - aAny = uno::makeAny(getDateTimeFromUserProp(aStaticVal)); + aAny <<= getDateTimeFromUserProp(aStaticVal); else if (m_aStates.top().aPropType == cppu::UnoType<double>::get()) - aAny = uno::makeAny(aStaticVal.toDouble()); + aAny <<= aStaticVal.toDouble(); xPropertyContainer->addProperty(rKey, beans::PropertyAttribute::REMOVABLE, aAny); } |