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>
This commit is contained in:
Mike Kaganski
2023-05-27 17:09:53 +02:00
parent 5c1c768e12
commit efcbd2306f
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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;
+1 -1
View File
@@ -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;