vcl/osx/salframe.cxx | 5 +++++ 1 file changed, 5 insertions(+) New commits: commit 5cf1cc2343aaad47eb4c79972c29e1d97f43c418 Author: Stephan Bergmann <sberg...@redhat.com> AuthorDate: Mon Nov 28 14:46:06 2022 +0100 Commit: Stephan Bergmann <sberg...@redhat.com> CommitDate: Mon Nov 28 20:32:38 2022 +0100
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 <sberg...@redhat.com> 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();