]> git.tdb.fi Git - libs/core.git/blobdiff - source/debug/demangle.cpp
Use vectors for storage in Poller
[libs/core.git] / source / debug / demangle.cpp
index fc6ca7823f3d0eaf5d903c641dee848c1e77fef4..e41eb9ad79f32152b92503d33168c6dd1a43d337 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,13 +13,13 @@ 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(), 0, 0, &status);
        
        string result;
        if(status==0)
-               result=dm;
+               result = dm;
        else
-               result=sym;
+               result = sym;
        
        free(dm);