diff --git a/src/checkmemoryleak.h b/src/checkmemoryleak.h index 41eb7681a..8d7703602 100644 --- a/src/checkmemoryleak.h +++ b/src/checkmemoryleak.h @@ -66,10 +66,8 @@ private: AllocType alloctype; AllocFunc(const char f[], AllocType a) - { - funcname = f; - alloctype = a; - } + : funcname(f), alloctype(a) + { } }; void CheckMemoryLeak_ClassMembers_Variable(const char classname[], const Token *tokVarname);