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:
Noel Grandin
2014-05-26 15:26:03 +02:00
parent 9b791f9c31
commit 9af0abebfd
37 changed files with 249 additions and 268 deletions

View File

@@ -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()
);