diff options
Diffstat (limited to 'fpicker/source/aqua/SalAquaFilePicker.mm')
-rw-r--r-- | fpicker/source/aqua/SalAquaFilePicker.mm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fpicker/source/aqua/SalAquaFilePicker.mm b/fpicker/source/aqua/SalAquaFilePicker.mm index 761198bdcbf0..2ab668c0ba32 100644 --- a/fpicker/source/aqua/SalAquaFilePicker.mm +++ b/fpicker/source/aqua/SalAquaFilePicker.mm @@ -203,7 +203,7 @@ void SAL_CALL SalAquaFilePicker::setMultiSelectionMode( sal_Bool /* bMode */ ) SolarMutexGuard aGuard; if (m_nDialogType == NAVIGATIONSERVICES_OPEN) { - [(NSOpenPanel*)m_pDialog setAllowsMultipleSelection:YES]; + [static_cast<NSOpenPanel*>(m_pDialog) setAllowsMultipleSelection:YES]; } } @@ -256,7 +256,7 @@ uno::Sequence<rtl::OUString> SAL_CALL SalAquaFilePicker::getSelectedFiles() NSArray *files = nil; if (m_nDialogType == NAVIGATIONSERVICES_OPEN) { - files = [(NSOpenPanel*)m_pDialog URLs]; + files = [static_cast<NSOpenPanel*>(m_pDialog) URLs]; } else if (m_nDialogType == NAVIGATIONSERVICES_SAVE) { files = [NSArray arrayWithObjects:[m_pDialog URL], nil]; |