From 8dd4f529f27147d216cafb311e1d82537373e2d2 Mon Sep 17 00:00:00 2001 From: Johann Dreo Date: Tue, 10 Sep 2024 09:21:15 +0200 Subject: [PATCH] fix(eoExceptions): do not return a ref from a temp --- eo/src/eoExceptions.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eo/src/eoExceptions.h b/eo/src/eoExceptions.h index b91bd6207..a41a7e4a9 100644 --- a/eo/src/eoExceptions.h +++ b/eo/src/eoExceptions.h @@ -45,7 +45,7 @@ public: const char* what() const throw() { - return message().c_str(); + return _msg.c_str(); } ~eoException() throw() {}