fix: remove useless void in function parameter list

- according to c++ standard, single void in function parameter is equal to empty parameter list. for removing this syntax which may cause misunderstanding (becuase in C, they are different I guess), I replace all `(void)` to `()`.
This commit is contained in:
2024-12-28 22:09:26 +08:00
parent aeb2e86b14
commit ead22d13ff
20 changed files with 31 additions and 31 deletions

View File

@ -44,9 +44,9 @@ namespace LibCmo::CK2 {
const void* GetPtr(CKINT extraoff = 0) { return (this->m_MemBegin + m_MemPos + extraoff); }
void* GetMutablePtr(CKINT extraoff = 0) { return (this->m_MemBegin + m_MemPos + extraoff); }
void* GetBase(void) { return this->m_MemBegin; }
CKDWORD GetSize(void) { return this->m_MemSize; }
CKDWORD GetCursor(void) { return this->m_MemPos; }
void* GetBase() { return this->m_MemBegin; }
CKDWORD GetSize() { return this->m_MemSize; }
CKDWORD GetCursor() { return this->m_MemPos; }
void MoveCursor(CKINT off) { this->m_MemPos += off; }
void SetCursor(CKDWORD off) { this->m_MemPos = off; }
void Read(void* data, CKDWORD data_size) {