< prev index next >

src/share/vm/libadt/set.cpp

Print this page
rev 8116 : 8077364: "if( !this )" construct prevents build on Xcode 6.3
Reviewed-by:

@@ -55,11 +55,11 @@
 //------------------------------setstr-----------------------------------------
 // Create a string with a printable representation of a set.
 // The caller must deallocate the string.
 char *Set::setstr() const
 {
-  if( !this ) return os::strdup("{no set}");
+  if( this == NULL ) return os::strdup("{no set}");
   Set &set = clone();           // Virtually copy the basic set.
   set.Sort();                   // Sort elements for in-order retrieval
 
   uint len = 128;               // Total string space
   char *buf = NEW_C_HEAP_ARRAY(char,len, mtCompiler);// Some initial string space
< prev index next >