openoffice-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From h..@apache.org
Subject svn commit: r1511231 - /openoffice/trunk/main/fpicker/source/aqua/CFStringUtilities.hxx
Date Wed, 07 Aug 2013 10:00:20 GMT
Author: hdu
Date: Wed Aug  7 10:00:20 2013
New Revision: 1511231

URL: http://svn.apache.org/r1511231
Log:
#i122301# fix build breaker on Mac in fpicker for debug=true

NSLog demands a non-const NSString but doesn't change the string.

Modified:
    openoffice/trunk/main/fpicker/source/aqua/CFStringUtilities.hxx

Modified: openoffice/trunk/main/fpicker/source/aqua/CFStringUtilities.hxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/fpicker/source/aqua/CFStringUtilities.hxx?rev=1511231&r1=1511230&r2=1511231&view=diff
==============================================================================
--- openoffice/trunk/main/fpicker/source/aqua/CFStringUtilities.hxx (original)
+++ openoffice/trunk/main/fpicker/source/aqua/CFStringUtilities.hxx Wed Aug  7 10:00:20 2013
@@ -72,7 +72,7 @@ inline void DBG_PRINT_ENTRY(const char *
 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 *
 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 * 
 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
 }
 



Mime
View raw message