summaryrefslogtreecommitdiff
path: root/shell/source/unix/exec/shellexec.cxx
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2023-04-23 20:14:45 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2023-04-30 17:05:28 +0200
commitf220acf3aad954e20f3b15b30910432fac97ed15 (patch)
tree5c2f604499bcd812c9c5ed3b5bc572e837d509fa /shell/source/unix/exec/shellexec.cxx
parent723a0a067daaefb8b082fc849713ee6502ec9231 (diff)
Use getXWeak in shell
Change-Id: Ied9a244a0fdd5973f2c9cb3bdd46500f6be2e0cd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150868 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
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(" ");