From e7bc3cab019fbf040f9fb8b53ae2cf3f977d200b Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 23 May 2014 12:03:21 +0200 Subject: remove boilerplate in UNO Exception constructor calls Now that we have default values for Exception constructor params, remove lots of boilerplate code. Change-Id: I620bd641eecfed38e6123873b3b94aaf47922e74 --- ucb/source/ucp/file/prov.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ucb/source/ucp/file/prov.cxx') diff --git a/ucb/source/ucp/file/prov.cxx b/ucb/source/ucp/file/prov.cxx index be3fc1155872..95400bdc577a 100644 --- a/ucb/source/ucp/file/prov.cxx +++ b/ucb/source/ucp/file/prov.cxx @@ -205,7 +205,7 @@ FileProvider::queryContent( aUnc ); if( err ) - throw IllegalIdentifierException( THROW_WHERE, uno::Reference< uno::XInterface >() ); + throw IllegalIdentifierException( THROW_WHERE ); return Reference< XContent >( new BaseContent( m_pMyShell,xIdentifier,aUnc ) ); } @@ -396,7 +396,7 @@ XPropertySetInfoImpl2::getPropertyByName( if( m_seq[i].Name == aName ) return m_seq[i]; - throw UnknownPropertyException( THROW_WHERE, uno::Reference< uno::XInterface >() ); + throw UnknownPropertyException( THROW_WHERE ); } @@ -478,7 +478,7 @@ FileProvider::setPropertyValue( const OUString& aPropertyName, aPropertyName.equalsAscii( "HostName" ) ) return; else - throw UnknownPropertyException( THROW_WHERE, uno::Reference< uno::XInterface >() ); + throw UnknownPropertyException( THROW_WHERE ); } @@ -510,7 +510,7 @@ FileProvider::getPropertyValue( return aAny; } else - throw UnknownPropertyException( THROW_WHERE, uno::Reference< uno::XInterface >() ); + throw UnknownPropertyException( THROW_WHERE ); } -- cgit