Sonar suggestion
This commit is contained in:
parent
1d514c1532
commit
f6f64954de
@ -14,7 +14,7 @@ namespace cpptrace {
|
||||
namespace detail {
|
||||
inline std::string exception_type_name() {
|
||||
#if CPPTRACE_HAS_CXX_EXCEPTION_TYPE && defined(__GLIBCXX__) || defined(__GLIBCPP__) || defined(_LIBCPP_VERSION)
|
||||
std::type_info* t = abi::__cxa_current_exception_type();
|
||||
const std::type_info* t = abi::__cxa_current_exception_type();
|
||||
return t ? detail::demangle(t->name()) : "<unknown>";
|
||||
#else
|
||||
return "<unknown>";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user