From 1b71491d6e9624a247e7a6d1cd4e68e908b0404a Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Thu, 13 Jul 2017 23:17:39 +0300 Subject: [PATCH] Remove name of optional arguments of operator new and new[] in gc_cpp.h (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 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/gc_cpp.h b/include/gc_cpp.h index d41a0f52..875c64e2 100644 --- a/include/gc_cpp.h +++ b/include/gc_cpp.h @@ -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 */ -- 2.40.0