diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2023-04-23 20:13:53 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2023-05-27 17:09:53 +0200 |
commit | efcbd2306f0310809f2d6f1db086b839055c77f6 (patch) | |
tree | 0bd9d6f9a27708e2a40baaf989c58b811edfe342 /fpicker | |
parent | 5c1c768e128d9356cbe17adb96ef6290ec3bb1ad (diff) |
Use getXWeak in fpicker
Change-Id: Iedeb452d49718b6e73a526da132bc0fc9b165fb7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150852
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'fpicker')
-rw-r--r-- | fpicker/source/aqua/SalAquaFolderPicker.mm | 4 | ||||
-rw-r--r-- | fpicker/source/office/OfficeFilePicker.cxx | 2 |
2 files changed, 3 insertions, 3 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; diff --git a/fpicker/source/office/OfficeFilePicker.cxx b/fpicker/source/office/OfficeFilePicker.cxx index 6d84f92af512..723a8a279918 100644 --- a/fpicker/source/office/OfficeFilePicker.cxx +++ b/fpicker/source/office/OfficeFilePicker.cxx @@ -881,7 +881,7 @@ void SAL_CALL SvtFilePicker::appendFilterGroup( const OUString& sGroupTitle, if ( FilterNameExists( aFilters ) ) throw IllegalArgumentException( "filter name exists", - static_cast< OWeakObject * >(this), 1); + getXWeak(), 1); // ensure that we have a filter list OUString sInitialCurrentFilter; |