]> git.tdb.fi Git - libs/core.git/blobdiff - source/debug/demangle.cpp
Use nullptr instead of 0 for pointers
[libs/core.git] / source / debug / demangle.cpp
index 053fd52bc4a867a9a1f8d3f63641fdf4962d0f4b..3ed3171960ff8decc29384d1216937c8042f35f4 100644 (file)
@@ -1,10 +1,3 @@
-/* $Id$
-
-This file is part of libmspcore
-Copyright © 2007 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
 #include <cstdlib>
 #ifdef __GNUC__
 #include <cxxabi.h>
@@ -20,7 +13,7 @@ string demangle(const string &sym)
 {
 #ifdef __GNUC__
        int status;
-       char *dm = abi::__cxa_demangle(sym.c_str(), 0, 0, &status);
+       char *dm = abi::__cxa_demangle(sym.c_str(), nullptr, nullptr, &status);
        
        string result;
        if(status==0)