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

@ -4,7 +4,7 @@
namespace LibCmo::CK2 {
void CKStateChunk::StartRead(void) {
void CKStateChunk::StartRead() {
if (this->m_Parser.m_Status != CKStateChunkStatus::IDLE) return;
this->m_Parser.m_CurrentPos = 0u;
@ -13,7 +13,7 @@ namespace LibCmo::CK2 {
this->m_Parser.m_Status = CKStateChunkStatus::READ;
}
void CKStateChunk::StopRead(void) {
void CKStateChunk::StopRead() {
if (this->m_Parser.m_Status != CKStateChunkStatus::READ) return;
this->m_Parser.m_CurrentPos = 0u;
@ -220,7 +220,7 @@ namespace LibCmo::CK2 {
return true;
}
//CKStateChunk* CKStateChunk::ReadSubChunk(void) {
//CKStateChunk* CKStateChunk::ReadSubChunk() {
// CKStateChunk* subchunk = nullptr;
// // get size and do a enough space check