summaryrefslogtreecommitdiff
path: root/vcl/osx/saldata.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-10-04 10:14:00 +0200
committerStephan Bergmann <sbergman@redhat.com>2018-10-04 21:40:18 +0200
commit2f2c9df8e270ede0fd71b146380c3883b75d8f0d (patch)
tree0be279529fc1813814e7c1d91adcf75bbdca562f /vcl/osx/saldata.cxx
parent1371c2f4edab5086af6d0661de046252def29455 (diff)
-Werror,-Wdeprecated-declarations (--with-macosx-version-min-required=10.14)
These are all the cases where the warning doesn't suggest a direct replacement, so the existing code is just wrapped in SAL_WNODEPRECATED_PUSH/POP for now. A companion commit will cover cases where there is a direct replacement that can probably be applied (even backwards-compatibly with our current baseline, hopefully). Change-Id: I899537cb36dd69e08b5442ad4af7ce69ce2ddaec Reviewed-on: https://gerrit.libreoffice.org/61354 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'vcl/osx/saldata.cxx')
-rw-r--r--vcl/osx/saldata.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/vcl/osx/saldata.cxx b/vcl/osx/saldata.cxx
index 033114dae7e1..662a5c1bd7b2 100644
--- a/vcl/osx/saldata.cxx
+++ b/vcl/osx/saldata.cxx
@@ -255,7 +255,11 @@ NSStatusItem* SalData::getStatusItem()
pData->mpStatusItem = [pStatBar statusItemWithLength: NSVariableStatusItemLength];
[pData->mpStatusItem retain];
OOStatusItemView* pView = [[OOStatusItemView alloc] init];
+SAL_WNODEPRECATED_DECLARATIONS_PUSH
+ // "'setView:' is deprecated: first deprecated in macOS 10.14 - Use the standard
+ // button property instead"
[pData->mpStatusItem setView: pView ];
+SAL_WNODEPRECATED_DECLARATIONS_POP
[pView display];
}
}