summaryrefslogtreecommitdiff
path: root/libmysqlpp/my-error.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2020-11-18 16:54:48 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2020-11-18 16:54:48 +0000
commitd77f801dc01c5e30c0d96e907c8ac14f23d7b630 (patch)
tree29756c92cb200c1ddcb422723cd5e676d5c97074 /libmysqlpp/my-error.cpp
parentFixes for tidy (diff)
downloadlibdbpp-mysql-d77f801dc01c5e30c0d96e907c8ac14f23d7b630.tar.bz2
libdbpp-mysql-d77f801dc01c5e30c0d96e907c8ac14f23d7b630.tar.xz
libdbpp-mysql-d77f801dc01c5e30c0d96e907c8ac14f23d7b630.zip
Clang format
Diffstat (limited to 'libmysqlpp/my-error.cpp')
-rw-r--r--libmysqlpp/my-error.cpp11
1 files changed, 2 insertions, 9 deletions
diff --git a/libmysqlpp/my-error.cpp b/libmysqlpp/my-error.cpp
index f563236..1af24ea 100644
--- a/libmysqlpp/my-error.cpp
+++ b/libmysqlpp/my-error.cpp
@@ -1,19 +1,12 @@
#include "my-error.h"
#include <cstring>
-MySQL::Error::Error(MYSQL * m) :
- msg(mysql_error(m))
-{
-}
+MySQL::Error::Error(MYSQL * m) : msg(mysql_error(m)) { }
-MySQL::Error::Error(MYSQL_STMT * m) :
- msg(mysql_stmt_error(m))
-{
-}
+MySQL::Error::Error(MYSQL_STMT * m) : msg(mysql_stmt_error(m)) { }
std::string
MySQL::Error::message() const noexcept
{
return msg;
}
-