]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - win/inspircd_memory_functions.cpp
Merge pull request #437 from SaberUK/insp20+doxygen-update
[user/henk/code/inspircd.git] / win / inspircd_memory_functions.cpp
index e40e09c9ca3ae91f7a40332fa802cb494022c5a2..4d8444f4c231dd115cd05e36fbb7531cd11205bd 100644 (file)
@@ -34,7 +34,7 @@
 
 void * ::operator new(size_t iSize)
 {
-       void* ptr = HeapAlloc(GetProcessHeap(), 0, iSize);              /* zero memory for unix compatibility */
+       void* ptr = HeapAlloc(GetProcessHeap(), 0, iSize);
        /* This is the correct behaviour according to C++ standards for out of memory,
         * not returning null -- Brain
         */
@@ -51,7 +51,7 @@ void ::operator delete(void * ptr)
 }
 
 void * operator new[] (size_t iSize) {
-       void* ptr = HeapAlloc(GetProcessHeap(), 0, iSize); /* Why were we initializing the memory to zeros here? This is just a waste of cpu! */
+       void* ptr = HeapAlloc(GetProcessHeap(), 0, iSize);
        if (!ptr)
                throw std::bad_alloc();
        else