From 198c41c4fe8be4ce8a6ddab43ae0c5f17a4889ac Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 24 Feb 2017 11:22:18 +0200 Subject: new loplugin unoany Change-Id: I5d6c4a67cb2a09e7cd5bd620c6b262d188701b89 Reviewed-on: https://gerrit.libreoffice.org/34714 Tested-by: Jenkins Reviewed-by: Noel Grandin --- writerfilter/source/rtftok/rtfdocumentimpl.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'writerfilter/source/rtftok/rtfdocumentimpl.cxx') 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::get()) - aAny = uno::makeAny(aStaticVal); + aAny <<= aStaticVal; else if (m_aStates.top().aPropType == cppu::UnoType::get()) - aAny = uno::makeAny(aStaticVal.toInt32()); + aAny <<= aStaticVal.toInt32(); else if (m_aStates.top().aPropType == cppu::UnoType::get()) - aAny = uno::makeAny(aStaticVal.toBoolean()); + aAny <<= aStaticVal.toBoolean(); else if (m_aStates.top().aPropType == cppu::UnoType::get()) - aAny = uno::makeAny(getDateTimeFromUserProp(aStaticVal)); + aAny <<= getDateTimeFromUserProp(aStaticVal); else if (m_aStates.top().aPropType == cppu::UnoType::get()) - aAny = uno::makeAny(aStaticVal.toDouble()); + aAny <<= aStaticVal.toDouble(); xPropertyContainer->addProperty(rKey, beans::PropertyAttribute::REMOVABLE, aAny); } -- cgit