From f6f64954de86a0a97e428bfadc9e2629815603f8 Mon Sep 17 00:00:00 2001 From: Jeremy <51220084+jeremy-rifkin@users.noreply.github.com> Date: Sat, 7 Oct 2023 17:43:39 -0400 Subject: [PATCH] Sonar suggestion --- src/platform/exception_type.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/exception_type.hpp b/src/platform/exception_type.hpp index 6d87545..25d44b6 100644 --- a/src/platform/exception_type.hpp +++ b/src/platform/exception_type.hpp @@ -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()) : ""; #else return "";