summaryrefslogtreecommitdiffstats
path: root/fpicker/source/aqua/SalAquaFolderPicker.mm
diff options
context:
space:
mode:
Diffstat (limited to 'fpicker/source/aqua/SalAquaFolderPicker.mm')
-rw-r--r--fpicker/source/aqua/SalAquaFolderPicker.mm4
1 files changed, 2 insertions, 2 deletions
diff --git a/fpicker/source/aqua/SalAquaFolderPicker.mm b/fpicker/source/aqua/SalAquaFolderPicker.mm
index 3dabf488a365..00021a487398 100644
--- a/fpicker/source/aqua/SalAquaFolderPicker.mm
+++ b/fpicker/source/aqua/SalAquaFolderPicker.mm
@@ -79,7 +79,7 @@ sal_Int16 SAL_CALL SalAquaFolderPicker::execute()
break;
default:
- throw uno::RuntimeException("The dialog returned with an unknown result!", static_cast< cppu::OWeakObject * >( this ));
+ throw uno::RuntimeException("The dialog returned with an unknown result!", getXWeak());
break;
}
@@ -117,7 +117,7 @@ OUString SAL_CALL SalAquaFolderPicker::getDirectory()
SAL_INFO("fpicker.aqua", "# of items: " << nFiles);
if (nFiles < 1) {
- throw uno::RuntimeException("no directory selected", static_cast< cppu::OWeakObject * >( this ));
+ throw uno::RuntimeException("no directory selected", getXWeak());
}
OUString aDirectory;