diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2022-11-28 14:46:06 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2022-11-28 20:32:38 +0100 |
commit | 5cf1cc2343aaad47eb4c79972c29e1d97f43c418 (patch) | |
tree | dca78e0223c4ced52507a6d1e3a053ea922f924b /vcl | |
parent | af826c85c2eb519b9a3f76099c0e70604d9679e2 (diff) |
Silence -Werror,-Wdeprecated-declarations for now
...that got introduced with e10e5981ca020af11d25d5756964c95d51dd1535 "tdf#152183
update settings when dark/light system mode toggled",
> vcl/osx/salframe.cxx:1269:19: error: 'setCurrentAppearance:' is deprecated: first deprecated in macOS 12.0 - Use -performAsCurrentDrawingAppearance: to temporarily set the drawing appearance, or +currentDrawingAppearance to access the currently drawing appearance. [-Werror,-Wdeprecated-declarations]
> [NSAppearance setCurrentAppearance: mpNSView.effectiveAppearance];
> ^
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAppearance.h:28:58: note: property 'currentAppearance' is declared deprecated here
> @property (class, null_resettable, strong) NSAppearance *currentAppearance API_DEPRECATED("Use -performAsCurrentDrawingAppearance: to temporarily set the drawing appearance, or +currentDrawingAppearance to access the currently drawing appearance.", macos(10.9, 12.0));
> ^
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAppearance.h:28:58: note: 'setCurrentAppearance:' has been explicitly marked deprecated here
Change-Id: If4aa9a30fda2977fa3cc23f2cb0d056a8dcde311
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143402
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/osx/salframe.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/vcl/osx/salframe.cxx b/vcl/osx/salframe.cxx index 1b1d0eab1f6b..93de74e6fa68 100644 --- a/vcl/osx/salframe.cxx +++ b/vcl/osx/salframe.cxx @@ -1260,7 +1260,12 @@ SAL_WNODEPRECATED_DECLARATIONS_PUSH return; SAL_WNODEPRECATED_DECLARATIONS_POP +SAL_WNODEPRECATED_DECLARATIONS_PUSH + // "'setCurrentAppearance:' is deprecated: first deprecated in macOS 12.0 - Use + // -performAsCurrentDrawingAppearance: to temporarily set the drawing appearance, or + // +currentDrawingAppearance to access the currently drawing appearance." [NSAppearance setCurrentAppearance: mpNSView.effectiveAppearance]; +SAL_WNODEPRECATED_DECLARATIONS_POP StyleSettings aStyleSettings = rSettings.GetStyleSettings(); |