remove unnecessary use of Reference constructor in throw
Convert code like this: throw IOException("xx", Reference< XInterface >(static_cast<OWeakObject*>(this)) ); to this: throw IOException("xx", static_cast<OWeakObject*>(this) ); Change-Id: Ife9f645f0f1810a8e80219126193015502c43dbb
This commit is contained in:
@@ -216,7 +216,7 @@ void OInterfaceContainer::clonedFrom( const OInterfaceContainer& _cloneSource )
|
||||
catch( const Exception& )
|
||||
{
|
||||
throw WrappedTargetException(
|
||||
OUString( "Could not clone the given interface hierarchy." ),
|
||||
"Could not clone the given interface hierarchy.",
|
||||
static_cast< XIndexContainer* >( const_cast< OInterfaceContainer* >( &_cloneSource ) ),
|
||||
::cppu::getCaughtException()
|
||||
);
|
||||
|
Reference in New Issue
Block a user