Remove name of optional arguments of operator new and new[] in gc_cpp.h
authorIvan Maidanski <ivmai@mail.ru>
Thu, 13 Jul 2017 20:17:39 +0000 (23:17 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 13 Jul 2017 20:17:39 +0000 (23:17 +0300)
(code refactoring)

* include/gc_cpp.h (operator new): Comment out cleanup and clientData
argument names.
* include/gc_cpp.h [GC_OPERATOR_NEW_ARRAY] (operator new[]): Likewise.

include/gc_cpp.h

index d41a0f5..875c64e 100644 (file)
@@ -254,8 +254,8 @@ extern "C" {
 #endif
 
 inline void* operator new(size_t size, GC_NS_QUALIFY(GCPlacement) gcp,
-                          GC_NS_QUALIFY(GCCleanUpFunc) cleanup = 0,
-                          void* clientData = 0);
+                          GC_NS_QUALIFY(GCCleanUpFunc) /* cleanup */ = 0,
+                          void* /* clientData */ = 0);
     // Allocates a collectible or uncollectible object, according to the
     // value of "gcp".
     //
@@ -334,8 +334,8 @@ inline void* operator new(size_t size, GC_NS_QUALIFY(GCPlacement) gcp,
 #ifdef GC_OPERATOR_NEW_ARRAY
   // The operator new for arrays, identical to the above.
   inline void* operator new[](size_t size, GC_NS_QUALIFY(GCPlacement) gcp,
-                              GC_NS_QUALIFY(GCCleanUpFunc) cleanup = 0,
-                              void* clientData = 0);
+                              GC_NS_QUALIFY(GCCleanUpFunc) /* cleanup */ = 0,
+                              void* /* clientData */ = 0);
 #endif // GC_OPERATOR_NEW_ARRAY
 
 /* Inline implementation */