From f7e6c9853decbb61dc9aaa5ed3a3aa33d529d6e2 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 12 Nov 2020 08:19:33 +0100 Subject: loplugin:cstylecast (macOS) Change-Id: Ic2833f2e6dfea4a9e3dd1094151f86e07be83040 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105623 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- vcl/quartz/utils.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vcl/quartz') diff --git a/vcl/quartz/utils.cxx b/vcl/quartz/utils.cxx index ce5f9e4fa77e..cc18eb0d409f 100644 --- a/vcl/quartz/utils.cxx +++ b/vcl/quartz/utils.cxx @@ -208,7 +208,7 @@ std::ostream &operator <<(std::ostream& s, CGColorSpaceRef cs) CFStringRef name = CGColorSpaceCopyName(cs); if (name != nullptr) - s << " (" << [(NSString *)name UTF8String] << ")"; + s << " (" << [static_cast(name) UTF8String] << ")"; #endif return s; } -- cgit