mirror of
https://github.com/tnodir/fort
synced 2024-11-15 04:55:48 +00:00
UI: MemPlumber: Fix spaces
This commit is contained in:
parent
d117449bdb
commit
50d8fd97ae
16
src/3rdparty/memplumber/memplumber.cpp
vendored
16
src/3rdparty/memplumber/memplumber.cpp
vendored
@ -141,7 +141,7 @@ class MemPlumberInternal {
|
||||
pointerMetaDataRecord->line = line;
|
||||
pointerMetaDataRecord->size = size;
|
||||
strncpy(pointerMetaDataRecord->file, file, MEMPLUMBER_FILENAME_LEN - 1);
|
||||
pointerMetaDataRecord->file[MEMPLUMBER_FILENAME_LEN - 1] = '\0';
|
||||
pointerMetaDataRecord->file[MEMPLUMBER_FILENAME_LEN - 1] = '\0';
|
||||
|
||||
// put this metadata in the head of the list
|
||||
hashtable[hashIndex] = pointerMetaDataRecord;
|
||||
@ -166,7 +166,7 @@ class MemPlumberInternal {
|
||||
// find the metadata record bucket in the hash table
|
||||
size_t hashIndex = MEMPLUMBER_HASH(pointer);
|
||||
new_ptr_list_t* metaDataBucketLinkedListElement = m_PointerListHashtable[hashIndex];
|
||||
new_ptr_list_t* metaDataBucketLinkedListPrevElement = NULL;
|
||||
new_ptr_list_t* metaDataBucketLinkedListPrevElement = NULL;
|
||||
|
||||
// inside the bucket, go over the linked list until you find the specific pointer
|
||||
while (metaDataBucketLinkedListElement != NULL) {
|
||||
@ -387,19 +387,19 @@ void* operator new[](std::size_t size, const char* file, int line) {
|
||||
}
|
||||
|
||||
void* operator new[](size_t size) _THROW_BAD_ALLOC {
|
||||
return operator new(size, getCaller(), 0);
|
||||
return operator new(size, getCaller(), 0);
|
||||
}
|
||||
|
||||
void* operator new(size_t size) _THROW_BAD_ALLOC {
|
||||
return operator new(size, getCaller(), 0);
|
||||
return operator new(size, getCaller(), 0);
|
||||
}
|
||||
|
||||
void* operator new(size_t size, const std::nothrow_t&) _NOEXCEPT {
|
||||
return operator new(size, getCaller(), 0);
|
||||
return operator new(size, getCaller(), 0);
|
||||
}
|
||||
|
||||
void* operator new[](size_t size, const std::nothrow_t&) _NOEXCEPT {
|
||||
return operator new[](size, getCaller(), 0);
|
||||
return operator new[](size, getCaller(), 0);
|
||||
}
|
||||
|
||||
void operator delete(void* pointer, const char* file, int line) {
|
||||
@ -428,11 +428,11 @@ void operator delete[](void* pointer, const char* file, int line) {
|
||||
}
|
||||
|
||||
void operator delete(void* pointer, const std::nothrow_t&) throw() {
|
||||
operator delete(pointer);
|
||||
operator delete(pointer);
|
||||
}
|
||||
|
||||
void operator delete[](void* pointer, const std::nothrow_t&) throw() {
|
||||
operator delete(pointer, std::nothrow);
|
||||
operator delete(pointer, std::nothrow);
|
||||
}
|
||||
|
||||
void __mem_leak_check(size_t& memLeakCount, uint64_t& memLeakSize, bool verbose, const char* fileDumperName, bool append) {
|
||||
|
Loading…
Reference in New Issue
Block a user