From 3c39f1ff1c6a94a61b5e434f251f372dfe84608b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Rombauts?= Date: Sun, 3 May 2015 22:16:47 +0200 Subject: [PATCH] Fix 3 new cpplint warnings about max line size --- include/SQLiteCpp/Statement.h | 2 +- src/Statement.cpp | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/include/SQLiteCpp/Statement.h b/include/SQLiteCpp/Statement.h index 610b784..231c8e0 100644 --- a/include/SQLiteCpp/Statement.h +++ b/include/SQLiteCpp/Statement.h @@ -468,7 +468,7 @@ private: { if (false == mbOk) { - throw SQLite::Exception("No row to get a column from. executeStep() was not called or did not returned true."); + throw SQLite::Exception("No row to get a column from. executeStep() was not called, or returned false."); } } diff --git a/src/Statement.cpp b/src/Statement.cpp index 226e526..86e5919 100644 --- a/src/Statement.cpp +++ b/src/Statement.cpp @@ -91,7 +91,8 @@ void Statement::bind(const int aIndex, const double& aValue) // Bind a string value to a parameter "?", "?NNN", ":VVV", "@VVV" or "$VVV" in the SQL prepared statement void Statement::bind(const int aIndex, const std::string& aValue) { - const int ret = sqlite3_bind_text(mStmtPtr, aIndex, aValue.c_str(), static_cast(aValue.size()), SQLITE_TRANSIENT); + const int ret = sqlite3_bind_text(mStmtPtr, aIndex, aValue.c_str(), + static_cast(aValue.size()), SQLITE_TRANSIENT); check(ret); } @@ -145,7 +146,8 @@ void Statement::bind(const char* apName, const double& aValue) void Statement::bind(const char* apName, const std::string& aValue) { const int index = sqlite3_bind_parameter_index(mStmtPtr, apName); - const int ret = sqlite3_bind_text(mStmtPtr, index, aValue.c_str(), static_cast(aValue.size()), SQLITE_TRANSIENT); + const int ret = sqlite3_bind_text(mStmtPtr, index, aValue.c_str(), + static_cast(aValue.size()), SQLITE_TRANSIENT); check(ret); }