From 881033464c13398f78be306d8d785616f0947896 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 24 Feb 2019 15:29:12 +0000 Subject: Bring inline with clang-tidy checks --- libodbcpp/odbc-error.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libodbcpp/odbc-error.cpp') diff --git a/libodbcpp/odbc-error.cpp b/libodbcpp/odbc-error.cpp index 4f8f89a..7179a17 100644 --- a/libodbcpp/odbc-error.cpp +++ b/libodbcpp/odbc-error.cpp @@ -22,7 +22,8 @@ ODBC::Error::Error(RETCODE err, SQLSMALLINT handletype, SQLHANDLE handle) SQLINTEGER sqlerr; SQLCHAR sqlerrmsg[12800]; - SQLRETURN rc = SQLGetDiagRec(handletype, handle, 1, sqlstatus, &sqlerr, sqlerrmsg, sizeof(sqlerrmsg), NULL); + // NOLINTNEXTLINE(hicpp-no-array-decay) + SQLRETURN rc = SQLGetDiagRec(handletype, handle, 1, sqlstatus, &sqlerr, sqlerrmsg, sizeof(sqlerrmsg), nullptr); switch (rc) { case SQL_SUCCESS: case SQL_SUCCESS_WITH_INFO: @@ -45,7 +46,7 @@ ODBC::Error::Error(RETCODE err, SQLSMALLINT handletype, SQLHANDLE handle) } std::string -ODBC::Error::message() const throw() +ODBC::Error::message() const noexcept { return msg; } -- cgit v1.2.3