Permalink
Browse files

- Deprecation warning fix

- Removed extra 'GNU_RUNTIME' token
  • Loading branch information...
1 parent d0c95f8 commit 2c5b8e72e8b11682a5ab47e6b78a7f228bea76a3 @nikita-zhuk nikita-zhuk committed Jun 4, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 MiscMerge/KeyValue+MiscMerge.m
@@ -65,7 +65,7 @@ - (BOOL)hasMiscMergeKey:(NSString *)key
return (keySelector != NULL && [self respondsToSelector:keySelector]) ||
([[self class] accessInstanceVariablesDirectly] &&
- class_getInstanceVariable([self class], [key cString]));
+ class_getInstanceVariable([self class], [key cStringUsingEncoding:NSUTF8StringEncoding]));
}
@end
@@ -117,4 +117,4 @@ static Ivar_t class_getInstanceVariable(Class aClass, const char *name)
return NULL;
}
-#endif GNU_RUNTIME
+#endif

0 comments on commit 2c5b8e7

Please sign in to comment.