diff options
author | Herbert Dürr <hdu@apache.org> | 2013-08-07 10:00:20 +0000 |
---|---|---|
committer | Herbert Dürr <hdu@apache.org> | 2013-08-07 10:00:20 +0000 |
commit | 6f279aad1a472ebf4afd08334e10a24342924315 (patch) | |
tree | fc6cf01ec63dbeddaddbb23de0ab7c9e03190494 /fpicker | |
parent | c54284e73d919859188eaafac797c99c2a36e97a (diff) |
#i122301# fix build breaker on Mac in fpicker for debug=true
NSLog demands a non-const NSString but doesn't change the string.
Notes
Notes:
merged as: 7fd15394ad721fd2f954488c16e709d87d03ea2e
Diffstat (limited to 'fpicker')
-rw-r--r-- | fpicker/source/aqua/CFStringUtilities.hxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fpicker/source/aqua/CFStringUtilities.hxx b/fpicker/source/aqua/CFStringUtilities.hxx index c89124741e31..4df5b29f110b 100644 --- a/fpicker/source/aqua/CFStringUtilities.hxx +++ b/fpicker/source/aqua/CFStringUtilities.hxx @@ -72,7 +72,7 @@ inline void DBG_PRINT_ENTRY(const char * classname, const char * methodname, con inline void DBG_PRINT_ENTRY(const char * classname, const char * methodname, const char* param1, const NSString* value1) { OSL_TRACE(">>> %s::%s%s%s =", classname, methodname, PARAMFILLER, param1); #if OSL_DEBUG_LEVEL > 1 - NSLog(value1); + NSLog( const_cast<NSString*>(value1)); #endif } @@ -106,7 +106,7 @@ inline void DBG_PRINT_ENTRY(const char * classname, const char * methodname, con inline void DBG_PRINT_ENTRY(const char * classname, const char * methodname, const char* param1, const int value1, const char* param2, const NSString* value2) { OSL_TRACE(">>> %s::%s%s%s = %d%s%s =", classname, methodname, PARAMFILLER, param1, value1, PARAMFILLER, param2, value2); #if OSL_DEBUG_LEVEL > 1 - NSLog(value2); + NSLog( const_cast<NSString*>(value2)); #endif } @@ -146,7 +146,7 @@ inline void DBG_PRINT_EXIT(const char * classname, const char * methodname, cons inline void DBG_PRINT_EXIT(const char * classname, const char * methodname, const NSString* retVal) { OSL_TRACE("<<< %s::%s%sreturnValue = ", classname, methodname, PARAMFILLER); #if OSL_DEBUG_LEVEL > 1 - NSLog(retVal); + NSLog( const_cast<NSString*>(retVal)); #endif } |