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 --- forms/source/component/DatabaseForm.cxx | 2 +- forms/source/component/errorbroadcaster.cxx | 4 ++-- forms/source/component/formcontrolfont.cxx | 6 +++--- forms/source/component/navigationbar.cxx | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) (limited to 'forms') diff --git a/forms/source/component/DatabaseForm.cxx b/forms/source/component/DatabaseForm.cxx index c5923d0ee6c2..40707db7f974 100644 --- a/forms/source/component/DatabaseForm.cxx +++ b/forms/source/component/DatabaseForm.cxx @@ -1854,7 +1854,7 @@ Any ODatabaseForm::getPropertyDefaultByHandle( sal_Int32 nHandle ) const break; case PROPERTY_ID_NAVIGATION: - aReturn = makeAny(NavigationBarMode_CURRENT); + aReturn <<= NavigationBarMode_CURRENT; break; case PROPERTY_ID_CYCLE: diff --git a/forms/source/component/errorbroadcaster.cxx b/forms/source/component/errorbroadcaster.cxx index f0602891adbf..b73b96c3a0e0 100644 --- a/forms/source/component/errorbroadcaster.cxx +++ b/forms/source/component/errorbroadcaster.cxx @@ -62,9 +62,9 @@ namespace frm { Any aError; if ( !_rContextDescription.isEmpty() ) - aError = makeAny( prependErrorInfo( _rException, static_cast< XSQLErrorBroadcaster* >( this ), _rContextDescription ) ); + aError <<= prependErrorInfo( _rException, static_cast< XSQLErrorBroadcaster* >( this ), _rContextDescription ); else - aError = makeAny( _rException ); + aError <<= _rException; onError( SQLErrorEvent( static_cast< XSQLErrorBroadcaster* >( this ), aError ) ); } diff --git a/forms/source/component/formcontrolfont.cxx b/forms/source/component/formcontrolfont.cxx index cadf6c095a75..30029e9cd893 100644 --- a/forms/source/component/formcontrolfont.cxx +++ b/forms/source/component/formcontrolfont.cxx @@ -96,7 +96,7 @@ namespace frm break; case PROPERTY_ID_FONT_SLANT: - aValue = makeAny(_rFont.Slant); + aValue <<= _rFont.Slant; break; case PROPERTY_ID_FONT_UNDERLINE: @@ -108,7 +108,7 @@ namespace frm break; case PROPERTY_ID_FONT_WORDLINEMODE: - aValue = makeAny( _rFont.WordLineMode ); + aValue <<= _rFont.WordLineMode; break; default: @@ -238,7 +238,7 @@ namespace frm break; case PROPERTY_ID_FONT: - _rValue = makeAny( m_aFont ); + _rValue <<= m_aFont; break; default: diff --git a/forms/source/component/navigationbar.cxx b/forms/source/component/navigationbar.cxx index 4b617e2646eb..4762f805274c 100644 --- a/forms/source/component/navigationbar.cxx +++ b/forms/source/component/navigationbar.cxx @@ -266,12 +266,12 @@ namespace frm // the maybeboid anys if ( nNonVoids & PERSIST_TABSTOP ) - m_aTabStop = makeAny( _rxInStream->readBoolean() ); + m_aTabStop <<= _rxInStream->readBoolean(); else m_aTabStop.clear(); if ( nNonVoids & PERSIST_BACKGROUND ) - m_aBackgroundColor = makeAny( _rxInStream->readLong() ); + m_aBackgroundColor <<= _rxInStream->readLong(); else m_aBackgroundColor.clear(); -- cgit