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 /svl | |
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 'svl')
-rw-r--r-- | svl/source/fsstor/oinputstreamcontainer.cxx | 8 | ||||
-rw-r--r-- | svl/source/items/grabbagitem.cxx | 2 | ||||
-rw-r--r-- | svl/source/items/imageitm.cxx | 10 | ||||
-rw-r--r-- | svl/source/items/slstitm.cxx | 2 | ||||
-rw-r--r-- | svl/source/misc/ownlist.cxx | 2 |
5 files changed, 12 insertions, 12 deletions
diff --git a/svl/source/fsstor/oinputstreamcontainer.cxx b/svl/source/fsstor/oinputstreamcontainer.cxx index a68e449c7f47..d64c52de01ea 100644 --- a/svl/source/fsstor/oinputstreamcontainer.cxx +++ b/svl/source/fsstor/oinputstreamcontainer.cxx @@ -84,14 +84,14 @@ uno::Any SAL_CALL OFSInputStreamContainer::queryInterface( const uno::Type& rTyp uno::Any aReturn; if ( m_bSeekable ) - aReturn = uno::Any( ::cppu::queryInterface( rType, + aReturn = ::cppu::queryInterface( rType, static_cast< io::XStream* >( this ), static_cast< io::XInputStream* >( this ), - static_cast< io::XSeekable* >( this ) ) ); + static_cast< io::XSeekable* >( this ) ); else - aReturn = uno::Any( ::cppu::queryInterface( rType, + aReturn = ::cppu::queryInterface( rType, static_cast< io::XStream* >( this ), - static_cast< io::XInputStream* >( this ) ) ); + static_cast< io::XInputStream* >( this ) ); if ( aReturn.hasValue() ) return aReturn ; diff --git a/svl/source/items/grabbagitem.cxx b/svl/source/items/grabbagitem.cxx index 6d69fcd9f5ac..b05b0c7b5f10 100644 --- a/svl/source/items/grabbagitem.cxx +++ b/svl/source/items/grabbagitem.cxx @@ -67,7 +67,7 @@ bool SfxGrabBagItem::QueryValue(uno::Any& rVal, sal_uInt8 /*nMemberId*/) const pValue[0].Value = i.second; ++pValue; } - rVal = uno::makeAny(aValue); + rVal <<= aValue; return true; } diff --git a/svl/source/items/imageitm.cxx b/svl/source/items/imageitm.cxx index 4b2e31c8ab28..a77f52f8b2fa 100644 --- a/svl/source/items/imageitm.cxx +++ b/svl/source/items/imageitm.cxx @@ -68,12 +68,12 @@ bool SfxImageItem::operator==( const SfxPoolItem& rItem ) const bool SfxImageItem::QueryValue( css::uno::Any& rVal, sal_uInt8 ) const { css::uno::Sequence< css::uno::Any > aSeq( 4 ); - aSeq[0] = css::uno::makeAny( GetValue() ); - aSeq[1] = css::uno::makeAny( pImpl->nAngle ); - aSeq[2] = css::uno::makeAny( pImpl->bMirrored ); - aSeq[3] = css::uno::makeAny( OUString( pImpl->aURL )); + aSeq[0] <<= GetValue(); + aSeq[1] <<= pImpl->nAngle; + aSeq[2] <<= pImpl->bMirrored; + aSeq[3] <<= pImpl->aURL; - rVal = css::uno::makeAny( aSeq ); + rVal <<= aSeq; return true; } diff --git a/svl/source/items/slstitm.cxx b/svl/source/items/slstitm.cxx index 8e8bca223a2e..34399ee2f3e8 100644 --- a/svl/source/items/slstitm.cxx +++ b/svl/source/items/slstitm.cxx @@ -241,7 +241,7 @@ bool SfxStringListItem::QueryValue( css::uno::Any& rVal, sal_uInt8 ) const css::uno::Sequence< OUString > aStringList; pThis->GetStringList( aStringList ); - rVal = css::uno::makeAny( aStringList ); + rVal <<= aStringList; return true; } diff --git a/svl/source/misc/ownlist.cxx b/svl/source/misc/ownlist.cxx index 11449fb8c2a4..aff3b49707ce 100644 --- a/svl/source/misc/ownlist.cxx +++ b/svl/source/misc/ownlist.cxx @@ -61,7 +61,7 @@ void SvCommandList::FillSequence( css::uno::Sequence < css::beans::PropertyValue { aCommandSequence[nIndex].Name = aCommandList[ nIndex ].GetCommand(); aCommandSequence[nIndex].Handle = -1; - aCommandSequence[nIndex].Value = uno::makeAny( aCommandList[ nIndex ].GetArgument() ); + aCommandSequence[nIndex].Value <<= aCommandList[ nIndex ].GetArgument(); aCommandSequence[nIndex].State = beans::PropertyState_DIRECT_VALUE; } } |