From 322bae8253c54d3228491052ca2cd7e8bef7308b Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Fri, 19 Aug 2022 15:09:21 +0200 Subject: Avoid some warning, iirc --- src/utils/throwerror.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/utils/throwerror.h b/src/utils/throwerror.h index 1766f517..9963022e 100644 --- a/src/utils/throwerror.h +++ b/src/utils/throwerror.h @@ -30,7 +30,7 @@ namespace utils * * @param errmsg error introduction string. */ - static void throwError(const std::string &errmsg) + inline void throwError(const std::string &errmsg) { LOG_ERROR(errmsg); throw errmsg; @@ -43,7 +43,7 @@ namespace utils * @param T is the exception instance. */ template - static void throwError(std::string errmsg, const T& e) + void throwError(std::string errmsg, const T &e) { errmsg += e.what(); throwError(errmsg); -- cgit v1.2.3-70-g09d2