summaryrefslogtreecommitdiff
path: root/shell/source/unix/exec/shellexec.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'shell/source/unix/exec/shellexec.cxx')
-rw-r--r--shell/source/unix/exec/shellexec.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/source/unix/exec/shellexec.cxx b/shell/source/unix/exec/shellexec.cxx
index 97334fcd32c3..71137c7d6703 100644
--- a/shell/source/unix/exec/shellexec.cxx
+++ b/shell/source/unix/exec/shellexec.cxx
@@ -107,7 +107,7 @@ void SAL_CALL ShellExec::execute( const OUString& aCommand, const OUString& aPar
throw RuntimeException(
"Cannot translate URI reference to external format: "
+ aCommand,
- static_cast< cppu::OWeakObject * >(this));
+ getXWeak());
}
#ifdef MACOSX
@@ -205,7 +205,7 @@ void SAL_CALL ShellExec::execute( const OUString& aCommand, const OUString& aPar
"XSystemShellExecute.execute URIS_ONLY with non-absolute"
" URI reference "
+ aCommand,
- static_cast< cppu::OWeakObject * >(this), 0);
+ getXWeak(), 0);
} else {
escapeForShell(aBuffer, OUStringToOString(aCommand, osl_getThreadTextEncoding()));
aBuffer.append(" ");