summaryrefslogtreecommitdiff
path: root/fpicker/source
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2021-10-21 12:18:47 +0300
committerTor Lillqvist <tml@collabora.com>2021-10-21 12:54:53 +0200
commit4a7b8a981d3155427dd669e5409b7f107c5f3554 (patch)
tree6065e50c66d139c148bdeca41bc851dd62c98285 /fpicker/source
parent538ba91535c9f13101c25e49a67e56559f389288 (diff)
Use NSModalResponseOK instead of deprecated NSFileHandlingPanelOKButton
NSFileHandlingPanelOKButton is defined as NSModalResponseOK in NSSavePanel.h: NSFileHandlingPanelOKButton API_DEPRECATED_WITH_REPLACEMENT("NSModalResponseOK", macos(10.0,10.13)) = NSModalResponseOK, For some reason, when as a test I just removed the SAL_WNODEPRECATED_DECLARATIONS_PUSH and _POP lines, I still did not get any depreation warning about NSFileHandlingPanelOKButton. I wonder if there is some problem in latest Xcode or in our build system that means we don't get any deprecation warnings at all any more on macOS. Change-Id: Ia61dd9f800eb7d251508dbd491a9c48c8e6118f4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123964 Tested-by: Jenkins Reviewed-by: Tor Lillqvist <tml@collabora.com>
Diffstat (limited to 'fpicker/source')
-rw-r--r--fpicker/source/aqua/SalAquaPicker.mm5
1 files changed, 1 insertions, 4 deletions
diff --git a/fpicker/source/aqua/SalAquaPicker.mm b/fpicker/source/aqua/SalAquaPicker.mm
index 713d6d2ade13..5011c194db15 100644
--- a/fpicker/source/aqua/SalAquaPicker.mm
+++ b/fpicker/source/aqua/SalAquaPicker.mm
@@ -163,10 +163,7 @@ int SalAquaPicker::run()
break;
}
- SAL_WNODEPRECATED_DECLARATIONS_PUSH
- //TODO: 10.13 NSFileHandlingPanelOKButton
- if (retVal == NSFileHandlingPanelOKButton) {
- SAL_WNODEPRECATED_DECLARATIONS_POP
+ if (retVal == NSModalResponseOK) {
NSURL* pDir = [m_pDialog directoryURL];
if (pDir) {
implsetDisplayDirectory([pDir OUString]);