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 /forms | |
parent | d3981b3e8c021ee03a2ca7103a73e56cca18df81 (diff) |
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 'forms')
-rw-r--r-- | forms/source/component/DatabaseForm.cxx | 2 | ||||
-rw-r--r-- | forms/source/component/errorbroadcaster.cxx | 4 | ||||
-rw-r--r-- | forms/source/component/formcontrolfont.cxx | 6 | ||||
-rw-r--r-- | forms/source/component/navigationbar.cxx | 4 |
4 files changed, 8 insertions, 8 deletions
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(); |