Fixes nil NSString issue reported in #159

This commit is contained in:
Phil Nash committed 2013-03-12 18:49:22 +00:00
1 parent 17479c6e49
commit 32e70b2235
2 files changed
+9

No files matched your search

+4
View File
@@ -161,9 +161,13 @@ inline std::string toString( std::nullptr_t ) {
#ifdef __OBJC__
inline std::string toString( NSString const * const& nsstring ) {
if( !nsstring )
return "nil";
return std::string( "@\"" ) + [nsstring UTF8String] + "\"";
}
inline std::string toString( NSString * CATCH_ARC_STRONG const& nsstring ) {
if( !nsstring )
return "nil";
return std::string( "@\"" ) + [nsstring UTF8String] + "\"";
}
inline std::string toString( NSObject* const& nsObject ) {