summaryrefslogtreecommitdiff
path: root/libmysqlpp/my-error.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2019-02-16 14:20:26 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2019-02-16 14:20:26 +0000
commitb8ddecf41c8938136b3f4a081e1b8a98584c2401 (patch)
tree6813f5fbf3e5ad4f0e8e0d49eb9c9d4d0cfe3003 /libmysqlpp/my-error.cpp
parentBasic clang tidy fixes (diff)
downloadlibdbpp-mysql-b8ddecf41c8938136b3f4a081e1b8a98584c2401.tar.bz2
libdbpp-mysql-b8ddecf41c8938136b3f4a081e1b8a98584c2401.tar.xz
libdbpp-mysql-b8ddecf41c8938136b3f4a081e1b8a98584c2401.zip
Modernize clang tidy fixes
Diffstat (limited to 'libmysqlpp/my-error.cpp')
-rw-r--r--libmysqlpp/my-error.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libmysqlpp/my-error.cpp b/libmysqlpp/my-error.cpp
index 4867e0d..f563236 100644
--- a/libmysqlpp/my-error.cpp
+++ b/libmysqlpp/my-error.cpp
@@ -1,5 +1,5 @@
#include "my-error.h"
-#include <string.h>
+#include <cstring>
MySQL::Error::Error(MYSQL * m) :
msg(mysql_error(m))
@@ -12,7 +12,7 @@ MySQL::Error::Error(MYSQL_STMT * m) :
}
std::string
-MySQL::Error::message() const throw()
+MySQL::Error::message() const noexcept
{
return msg;
}