From ade87d3fc5ccc0289901c4a90ed22cd919a463cb Mon Sep 17 00:00:00 2001 From: Nicholas Hastings Date: Fri, 29 Mar 2013 09:22:08 -0400 Subject: [PATCH] Updated IKeyValuesSystem. --- public/vstdlib/IKeyValuesSystem.h | 2 +- tier1/KeyValues.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/public/vstdlib/IKeyValuesSystem.h b/public/vstdlib/IKeyValuesSystem.h index 6f3eb159..0276f355 100644 --- a/public/vstdlib/IKeyValuesSystem.h +++ b/public/vstdlib/IKeyValuesSystem.h @@ -29,7 +29,7 @@ public: virtual void RegisterSizeofKeyValues(int size) = 0; // allocates/frees a KeyValues object from the shared mempool - virtual void *AllocKeyValuesMemory(int size) = 0; + virtual void *AllocKeyValuesMemory() = 0; virtual void FreeKeyValuesMemory(void *pMem) = 0; // symbol table access (used for key names) diff --git a/tier1/KeyValues.cpp b/tier1/KeyValues.cpp index 2b10730f..6b059be0 100644 --- a/tier1/KeyValues.cpp +++ b/tier1/KeyValues.cpp @@ -2343,13 +2343,13 @@ bool KeyValues::ReadAsBinary( CUtlBuffer &buffer ) void *KeyValues::operator new( size_t iAllocSize ) { MEM_ALLOC_CREDIT(); - return KeyValuesSystem()->AllocKeyValuesMemory(iAllocSize); + return KeyValuesSystem()->AllocKeyValuesMemory(); } void *KeyValues::operator new( size_t iAllocSize, int nBlockUse, const char *pFileName, int nLine ) { MemAlloc_PushAllocDbgInfo( pFileName, nLine ); - void *p = KeyValuesSystem()->AllocKeyValuesMemory(iAllocSize); + void *p = KeyValuesSystem()->AllocKeyValuesMemory(); MemAlloc_PopAllocDbgInfo(); return p; }