From 9af0abebfd61641c9d028505caa864cdf898e35b Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 26 May 2014 15:26:03 +0200 Subject: remove unnecessary use of Reference constructor in throw Convert code like this: throw IOException("xx", Reference< XInterface >(static_cast(this)) ); to this: throw IOException("xx", static_cast(this) ); Change-Id: Ife9f645f0f1810a8e80219126193015502c43dbb --- fpicker/source/win32/filepicker/FilePicker.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'fpicker/source/win32') diff --git a/fpicker/source/win32/filepicker/FilePicker.cxx b/fpicker/source/win32/filepicker/FilePicker.cxx index 842ab0564830..9185dab132c4 100644 --- a/fpicker/source/win32/filepicker/FilePicker.cxx +++ b/fpicker/source/win32/filepicker/FilePicker.cxx @@ -94,7 +94,7 @@ void SAL_CALL CFilePicker::addFilePickerListener(const uno::Reference( this ) ); if ( !rBHelper.bInDispose && !rBHelper.bDisposed ) @@ -110,7 +110,7 @@ void SAL_CALL CFilePicker::removeFilePickerListener(const uno::Reference( this ) ); rBHelper.aLC.removeInterface( getCppuType( &xListener ), xListener ); @@ -433,7 +433,7 @@ sal_Int16 SAL_CALL CFilePicker::execute() throw(uno::RuntimeException) OSL_FAIL("Could not start event notifier thread!"); throw uno::RuntimeException( - OUString("Error executing dialog"), + "Error executing dialog", static_cast(this)); } @@ -601,7 +601,7 @@ void SAL_CALL CFilePicker::initialize(const uno::Sequence& aArguments) uno::Any aAny; if ( 0 == aArguments.getLength( ) ) throw lang::IllegalArgumentException( - OUString( "no arguments" ), + "no arguments", static_cast(this), 1); aAny = aArguments[0]; @@ -609,7 +609,7 @@ void SAL_CALL CFilePicker::initialize(const uno::Sequence& aArguments) if ( (aAny.getValueType() != ::cppu::UnoType::get()) && (aAny.getValueType() != ::cppu::UnoType::get()) ) throw lang::IllegalArgumentException( - OUString("invalid argument type"), + "invalid argument type", static_cast(this), 1); sal_Int16 templateId = -1; @@ -671,7 +671,7 @@ void SAL_CALL CFilePicker::initialize(const uno::Sequence& aArguments) default: throw lang::IllegalArgumentException( - OUString( "Unknown template" ), + "Unknown template", static_cast< XFilePicker2* >( this ), 1 ); } -- cgit