summaryrefslogtreecommitdiff
path: root/shell/source/unix
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-12-18 13:31:26 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-12-18 14:12:32 +0100
commit7f09f384b2712faef29c6874821084be34c413a7 (patch)
treecc7270e01602753af80cb3ab86b6c6e2dd7ae4a8 /shell/source/unix
parent70e56ffe13fb00ff044a43074e99eb70275883b3 (diff)
shell: Use appropriate OUString functions on string constants
Change-Id: I3b2c0a4200fa953162f40eff49289052962e73d2
Diffstat (limited to 'shell/source/unix')
-rw-r--r--shell/source/unix/exec/shellexec.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/shell/source/unix/exec/shellexec.cxx b/shell/source/unix/exec/shellexec.cxx
index c56e45b02c46..34bef4081f24 100644
--- a/shell/source/unix/exec/shellexec.cxx
+++ b/shell/source/unix/exec/shellexec.cxx
@@ -134,7 +134,7 @@ void SAL_CALL ShellExec::execute( const OUString& aCommand, const OUString& aPar
if ( aURL.isEmpty() && !aCommand.isEmpty() )
{
throw RuntimeException(
- OUString("Cannot translate URI reference to external format: ")
+ "Cannot translate URI reference to external format: "
+ aCommand,
static_cast< cppu::OWeakObject * >(this));
}
@@ -224,8 +224,8 @@ void SAL_CALL ShellExec::execute( const OUString& aCommand, const OUString& aPar
} else if ((nFlags & css::system::SystemShellExecuteFlags::URIS_ONLY) != 0)
{
throw css::lang::IllegalArgumentException(
- OUString("XSystemShellExecute.execute URIS_ONLY with non-absolute"
- " URI reference ")
+ "XSystemShellExecute.execute URIS_ONLY with non-absolute"
+ " URI reference "
+ aCommand,
static_cast< cppu::OWeakObject * >(this), 0);
} else {