From 9c7a8d479ffe877b286eaad76cff2e3249eef7af Mon Sep 17 00:00:00 2001 From: Gioacchino Mazzurco Date: Mon, 15 Apr 2019 00:09:01 +0200 Subject: [PATCH] Pass initialization value in RS_DEFAULT_STORAGE_PARAM --- libretroshare/src/util/rsmemory.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libretroshare/src/util/rsmemory.h b/libretroshare/src/util/rsmemory.h index 7b475bcaf..8bbbc335a 100644 --- a/libretroshare/src/util/rsmemory.h +++ b/libretroshare/src/util/rsmemory.h @@ -60,7 +60,7 @@ bool myFunnyFunction( * passed, so any effect on performace would happen only in case where the * function is called without the parameter. */ -#define RS_DEFAULT_STORAGE_PARAM(Type) *std::unique_ptr(new Type) +#define RS_DEFAULT_STORAGE_PARAM(Type,...) *std::unique_ptr(new Type(__VA_ARGS__)) void *rs_malloc(size_t size) ;