summaryrefslogtreecommitdiff
path: root/libmysqlpp/my-error.cpp
diff options
context:
space:
mode:
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;
}
-