diff options
Diffstat (limited to 'vcl/quartz/utils.cxx')
-rw-r--r-- | vcl/quartz/utils.cxx | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/vcl/quartz/utils.cxx b/vcl/quartz/utils.cxx index 9c76adc92a17..e0c49e84e43b 100644 --- a/vcl/quartz/utils.cxx +++ b/vcl/quartz/utils.cxx @@ -97,4 +97,20 @@ std::ostream &operator <<(std::ostream& s, CGSize &rSize) return s; } +std::ostream &operator <<(std::ostream& s, CGColorRef pColor) +{ +#ifndef SAL_LOG_INFO + (void) pColor; +#else + CFStringRef colorString = CFCopyDescription(pColor); + if (colorString) { + s << GetOUString(colorString); + CFRelease(colorString); + } else { + s << "NULL"; + } +#endif + return s; +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |