diff options
author | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2022-08-19 15:09:21 +0200 |
---|---|---|
committer | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2022-08-19 15:09:21 +0200 |
commit | 322bae8253c54d3228491052ca2cd7e8bef7308b (patch) | |
tree | 396b2bf09a4f19b2b6825bbca1d4bcd744a769ca /src | |
parent | 8cd940e41aead82921f3d8f5b49d6a9c7773ce40 (diff) | |
download | manaserv-322bae8253c54d3228491052ca2cd7e8bef7308b.tar.gz manaserv-322bae8253c54d3228491052ca2cd7e8bef7308b.tar.bz2 manaserv-322bae8253c54d3228491052ca2cd7e8bef7308b.tar.xz manaserv-322bae8253c54d3228491052ca2cd7e8bef7308b.zip |
Avoid some warning, iirc
Diffstat (limited to 'src')
-rw-r--r-- | src/utils/throwerror.h | 4 |
1 files changed, 2 insertions, 2 deletions
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 <class T> - static void throwError(std::string errmsg, const T& e) + void throwError(std::string errmsg, const T &e) { errmsg += e.what(); throwError(errmsg); |