summaryrefslogtreecommitdiff
path: root/src/utils/throwerror.h
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <bjorn@lindeijer.nl>2022-08-19 15:09:21 +0200
committerThorbjørn Lindeijer <bjorn@lindeijer.nl>2022-08-19 15:09:21 +0200
commit322bae8253c54d3228491052ca2cd7e8bef7308b (patch)
tree396b2bf09a4f19b2b6825bbca1d4bcd744a769ca /src/utils/throwerror.h
parent8cd940e41aead82921f3d8f5b49d6a9c7773ce40 (diff)
downloadmanaserv-322bae8253c54d3228491052ca2cd7e8bef7308b.tar.gz
manaserv-322bae8253c54d3228491052ca2cd7e8bef7308b.tar.bz2
manaserv-322bae8253c54d3228491052ca2cd7e8bef7308b.tar.xz
manaserv-322bae8253c54d3228491052ca2cd7e8bef7308b.zip
Avoid some warning, iirc
Diffstat (limited to 'src/utils/throwerror.h')
-rw-r--r--src/utils/throwerror.h4
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);