Fix 3 new cpplint warnings about max line size

This commit is contained in:
Sébastien Rombauts 2015-05-03 22:16:47 +02:00
parent b9322fb0ab
commit 3c39f1ff1c
2 changed files with 5 additions and 3 deletions

View File

@ -468,7 +468,7 @@ private:
{ {
if (false == mbOk) 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.");
} }
} }

View File

@ -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 // 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) void Statement::bind(const int aIndex, const std::string& aValue)
{ {
const int ret = sqlite3_bind_text(mStmtPtr, aIndex, aValue.c_str(), static_cast<int>(aValue.size()), SQLITE_TRANSIENT); const int ret = sqlite3_bind_text(mStmtPtr, aIndex, aValue.c_str(),
static_cast<int>(aValue.size()), SQLITE_TRANSIENT);
check(ret); 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) void Statement::bind(const char* apName, const std::string& aValue)
{ {
const int index = sqlite3_bind_parameter_index(mStmtPtr, apName); const int index = sqlite3_bind_parameter_index(mStmtPtr, apName);
const int ret = sqlite3_bind_text(mStmtPtr, index, aValue.c_str(), static_cast<int>(aValue.size()), SQLITE_TRANSIENT); const int ret = sqlite3_bind_text(mStmtPtr, index, aValue.c_str(),
static_cast<int>(aValue.size()), SQLITE_TRANSIENT);
check(ret); check(ret);
} }