Skip to content

Commit 2b1d55c

Browse files
committed
Update Char* parameters to const Char*
1 parent 7e934b1 commit 2b1d55c

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/Engine/Memory_Z.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ void Hi_MemoryManager_Z::Shut() {
1919
ExceptionFonc_Z("NbLeak==1", "Memory_Z.cpp", 0x23, "Leaks Found", 0, 0, 0, 0, 0, NULL);
2020
}
2121

22-
void* Hi_MemoryManager_Z::Alloc(U32 i_Size, Char* i_Comment, Char* i_File, S32 i_Line, U32 i_Align) {
22+
void* Hi_MemoryManager_Z::Alloc(U32 i_Size, const Char* i_Comment, const Char* i_File, S32 i_Line, U32 i_Align) {
2323
void* l_Result;
2424
Char l_Message[512];
2525

@@ -77,10 +77,10 @@ void* operator new(U32 i_Size, void* i_Ptr) {
7777
return i_Ptr;
7878
}
7979

80-
void* operator new(U32 i_Size, Char* i_Comment, Char* i_File, S32 i_Line) {
80+
void* operator new(U32 i_Size, const Char* i_Comment, const Char* i_File, S32 i_Line) {
8181
return MemManager.Alloc(i_Size, i_Comment, i_File, i_Line, _ALLOCDEFAULTALIGN);
8282
}
8383

84-
void* operator new[](U32 i_Size, Char* i_Comment, Char* i_File, S32 i_Line) {
84+
void* operator new[](U32 i_Size, const Char* i_Comment, const Char* i_File, S32 i_Line) {
8585
return MemManager.Alloc(i_Size, i_Comment, i_File, i_Line, _ALLOCDEFAULTALIGN);
8686
}

src/Engine/includes/Memory_Z.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ class Hi_MemoryManager_Z {
1010

1111
virtual void Init();
1212
virtual void Shut();
13-
virtual void* Alloc(U32 i_Size, Char* i_Comment, Char* i_File, S32 i_Line, U32 i_Align);
13+
virtual void* Alloc(U32 i_Size, const Char* i_Comment, const Char* i_File, S32 i_Line, U32 i_Align);
1414
virtual void* AllocEnd(U32 i_Size, const Char* i_Comment, const Char* i_File, S32 i_Line, U32 i_Align);
15-
virtual void* Realloc(void* i_Ptr, U32 i_Size, Char* i_Comment, Char* i_File, S32 i_Line);
15+
virtual void* Realloc(void* i_Ptr, U32 i_Size, const Char* i_Comment, const Char* i_File, S32 i_Line);
1616
virtual void Free(void* i_Ptr);
1717
virtual U32 FindAlloc(void* a1, void* a2);
1818
virtual U32 FindAllocNb(void* a1, void* a2);
@@ -44,8 +44,8 @@ void operator delete[](void* i_Ptr);
4444

4545
void* operator new(U32 i_Size);
4646
void* operator new(U32 i_Size, void* i_Ptr);
47-
void* operator new(U32 i_Size, Char* i_Comment, Char* i_File, S32 i_Line);
48-
void* operator new[](U32 i_Size, Char* i_Comment, Char* i_File, S32 i_Line);
47+
void* operator new(U32 i_Size, const Char* i_Comment, const Char* i_File, S32 i_Line);
48+
void* operator new[](U32 i_Size, const Char* i_Comment, const Char* i_File, S32 i_Line);
4949

5050
#undef New_Z
5151
#define New_Z new("Anonymous New", __FILE__, __LINE__)

0 commit comments

Comments
 (0)