Sonar suggestion

This commit is contained in:
Jeremy 2023-10-07 17:43:39 -04:00
parent 1d514c1532
commit f6f64954de
No known key found for this signature in database
GPG Key ID: 19AA8270105E8EB4

View File

@ -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>";