summaryrefslogtreecommitdiff
path: root/fpicker
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-05-26 14:29:07 +0200
committerNoel Grandin <noel@peralex.com>2014-05-27 08:20:11 +0200
commit9b791f9c31165b82ec0fa3760a8af18c5af21294 (patch)
tree3668f3b746bc584280a01162f86a0b2fe6b46510 /fpicker
parent3b24dcc8a8138c1e1495c3dba5ffe5748cb183c2 (diff)
remove unnecessary use of OUString constructor when throwing
Change-Id: I4a3f3f911dcfbf88696053215a2fb7a94678244c
Diffstat (limited to 'fpicker')
-rw-r--r--fpicker/source/aqua/SalAquaFilePicker.mm8
-rw-r--r--fpicker/source/aqua/SalAquaFolderPicker.mm4
2 files changed, 6 insertions, 6 deletions
diff --git a/fpicker/source/aqua/SalAquaFilePicker.mm b/fpicker/source/aqua/SalAquaFilePicker.mm
index 7c4858aa27fa..36814347814c 100644
--- a/fpicker/source/aqua/SalAquaFilePicker.mm
+++ b/fpicker/source/aqua/SalAquaFilePicker.mm
@@ -229,7 +229,7 @@ sal_Int16 SAL_CALL SalAquaFilePicker::execute() throw( uno::RuntimeException )
default:
throw uno::RuntimeException(
- rtl::OUString("The dialog returned with an unknown result!"),
+ "The dialog returned with an unknown result!",
static_cast<XFilePicker*>( static_cast<XFilePicker3*>( this ) ));
break;
}
@@ -526,14 +526,14 @@ throw( uno::Exception, uno::RuntimeException )
// parameter checking
uno::Any aAny;
if( 0 == aArguments.getLength() )
- throw lang::IllegalArgumentException(rtl::OUString("no arguments"),
+ throw lang::IllegalArgumentException("no arguments",
static_cast<XFilePicker*>( static_cast<XFilePicker3*>(this) ), 1 );
aAny = aArguments[0];
if( ( aAny.getValueType() != ::cppu::UnoType<sal_Int16>::get() ) &&
(aAny.getValueType() != ::cppu::UnoType<sal_Int8>::get() ) )
- throw lang::IllegalArgumentException(rtl::OUString( "invalid argument type" ),
+ throw lang::IllegalArgumentException("invalid argument type",
static_cast<XFilePicker*>( static_cast<XFilePicker3*>(this) ), 1 );
sal_Int16 templateId = -1;
@@ -586,7 +586,7 @@ throw( uno::Exception, uno::RuntimeException )
OSL_TRACE( "Template: FILESAVE_AUTOEXTENSION" );
break;
default:
- throw lang::IllegalArgumentException(rtl::OUString("Unknown template"),
+ throw lang::IllegalArgumentException("Unknown template",
static_cast<XFilePicker*>( static_cast<XFilePicker3*>(this) ),
1 );
}
diff --git a/fpicker/source/aqua/SalAquaFolderPicker.mm b/fpicker/source/aqua/SalAquaFolderPicker.mm
index 31cd0e16e8e0..6ad8c73823bd 100644
--- a/fpicker/source/aqua/SalAquaFolderPicker.mm
+++ b/fpicker/source/aqua/SalAquaFolderPicker.mm
@@ -122,7 +122,7 @@ sal_Int16 SAL_CALL SalAquaFolderPicker::execute() throw( uno::RuntimeException )
break;
default:
- throw uno::RuntimeException(OUString("The dialog returned with an unknown result!"), static_cast< cppu::OWeakObject * >( this ));
+ throw uno::RuntimeException("The dialog returned with an unknown result!", static_cast< cppu::OWeakObject * >( this ));
break;
}
@@ -174,7 +174,7 @@ rtl::OUString SAL_CALL SalAquaFolderPicker::getDirectory() throw( uno::RuntimeEx
OSL_TRACE("# of items: %d", nFiles);
if (nFiles < 1) {
- throw uno::RuntimeException(OUString("no directory selected"), static_cast< cppu::OWeakObject * >( this ));
+ throw uno::RuntimeException("no directory selected", static_cast< cppu::OWeakObject * >( this ));
}
rtl::OUString aDirectory;