diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2016-09-26 11:04:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-26 11:04:19 +0200 |
commit | 7320f611dad5f92f3472960720949adc3d5bf74a (patch) | |
tree | 41fd3558c4854d382d5500e4a3d2cddd7cfe5177 /staging_vespalib | |
parent | a48e4a611847e41201f10a9421f89dab66956e42 (diff) | |
parent | 024bc103751ccef2abe9de8632085a0594339df0 (diff) |
Merge pull request #698 from yahoo/balder/improve-querybuilder-robustness
Balder/improve querybuilder robustness
Diffstat (limited to 'staging_vespalib')
-rw-r--r-- | staging_vespalib/src/vespa/vespalib/objects/identifiable.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/staging_vespalib/src/vespa/vespalib/objects/identifiable.cpp b/staging_vespalib/src/vespa/vespalib/objects/identifiable.cpp index bac071c8048..c6459219fc4 100644 --- a/staging_vespalib/src/vespa/vespalib/objects/identifiable.cpp +++ b/staging_vespalib/src/vespa/vespalib/objects/identifiable.cpp @@ -9,7 +9,7 @@ #include "visit.h" #include "objectpredicate.h" #include "objectoperation.h" -#include <cxxabi.h> +#include <vespa/vespalib/util/classname.h> namespace vespalib { @@ -187,13 +187,7 @@ Identifiable::UP Identifiable::create(Deserializer & is) string Identifiable::getNativeClassName() const { - string name(typeid(*this).name()); - int status = 0; - size_t size = 0; - char *unmangled = abi::__cxa_demangle(name.c_str(), 0, &size, &status); - string result(unmangled); - free(unmangled); - return result; + return vespalib::getClassName(*this); } string |