[Libreoffice-commits] core.git: fpicker/source
rbuj
robert.buj at gmail.com
Fri Jul 11 03:12:57 PDT 2014
fpicker/source/aqua/SalAquaFilePicker.mm | 8 ++++++++
fpicker/source/aqua/SalAquaFolderPicker.mm | 8 ++++++++
2 files changed, 16 insertions(+)
New commits:
commit 17458019baa564c96dcd5e0bc73339c779456f94
Author: rbuj <robert.buj at gmail.com>
Date: Mon Jul 7 18:18:44 2014 +0200
-Wdeprecated-declarations: first deprecated in OS X 10.10
fpicker/source/aqua/SalAquaFilePicker.mm:220:14: warning: 'NSOKButton' is deprecated: first deprecated in OS X 10.10 - Use NSModalResponseOK instead [-Wdeprecated-declarations]
fpicker/source/aqua/SalAquaFilePicker.mm:225:14: warning: 'NSCancelButton' is deprecated: first deprecated in OS X 10.10 - Use NSModalResponseCancel instead [-Wdeprecated-declarations]
fpicker/source/aqua/SalAquaFolderPicker.mm:114:10: warning: 'NSOKButton' is deprecated: first deprecated in OS X 10.10 - Use NSModalResponseOK instead [-Wdeprecated-declarations]
fpicker/source/aqua/SalAquaFolderPicker.mm:119:10: warning: 'NSCancelButton' is deprecated: first deprecated in OS X 10.10 - Use NSModalResponseCancel instead [-Wdeprecated-declarations]
Change-Id: Ib497903e4df868867cc56e2eade7bb2572f0902a
Reviewed-on: https://gerrit.libreoffice.org/10115
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/fpicker/source/aqua/SalAquaFilePicker.mm b/fpicker/source/aqua/SalAquaFilePicker.mm
index 3681434..3e69877 100644
--- a/fpicker/source/aqua/SalAquaFilePicker.mm
+++ b/fpicker/source/aqua/SalAquaFilePicker.mm
@@ -217,12 +217,20 @@ sal_Int16 SAL_CALL SalAquaFilePicker::execute() throw( uno::RuntimeException )
switch( nStatus )
{
+#if MACOSX_SDK_VERSION >= 101000
+ case NSModalResponseOK:
+#else
case NSOKButton:
+#endif
OSL_TRACE("The dialog returned OK");
retVal = ExecutableDialogResults::OK;
break;
+#if MACOSX_SDK_VERSION >= 101000
+ case NSModalResponseCancel:
+#else
case NSCancelButton:
+#endif
OSL_TRACE("The dialog was cancelled by the user!");
retVal = ExecutableDialogResults::CANCEL;
break;
diff --git a/fpicker/source/aqua/SalAquaFolderPicker.mm b/fpicker/source/aqua/SalAquaFolderPicker.mm
index 6ad8c73..44f3abc 100644
--- a/fpicker/source/aqua/SalAquaFolderPicker.mm
+++ b/fpicker/source/aqua/SalAquaFolderPicker.mm
@@ -111,12 +111,20 @@ sal_Int16 SAL_CALL SalAquaFolderPicker::execute() throw( uno::RuntimeException )
switch( nResult )
{
+#if MACOSX_SDK_VERSION >= 101000
+ case NSModalResponseOK:
+#else
case NSOKButton:
+#endif
OSL_TRACE("Dialog returned with OK");
retVal = ExecutableDialogResults::OK;
break;
+#if MACOSX_SDK_VERSION >= 101000
+ case NSModalResponseCancel:
+#else
case NSCancelButton:
+#endif
OSL_TRACE("Dialog was cancelled!");
retVal = ExecutableDialogResults::CANCEL;
break;
More information about the Libreoffice-commits
mailing list