mirror of
https://github.com/allankoechke/SQLiteCpp.git
synced 2026-11-30 17:07:36 +00:00
Fixed whitespace issues
This commit is contained in:
@@ -181,8 +181,8 @@ bool Statement::executeStep()
|
||||
{
|
||||
if (false == mbDone)
|
||||
{
|
||||
int ret = sqlite3_step(mStmtPtr) ;
|
||||
mStmtPtr.setLastStatus (ret);
|
||||
int ret = sqlite3_step(mStmtPtr);
|
||||
mStmtPtr.setLastStatus(ret);
|
||||
if (SQLITE_ROW == ret) // one row is ready : call getColumn(N) to access it
|
||||
{
|
||||
mbOk = true;
|
||||
@@ -213,7 +213,7 @@ int Statement::exec()
|
||||
if (false == mbDone)
|
||||
{
|
||||
int ret = sqlite3_step(mStmtPtr);
|
||||
mStmtPtr.setLastStatus (ret);
|
||||
mStmtPtr.setLastStatus(ret);
|
||||
if (SQLITE_DONE == ret) // the statement has finished executing successfully
|
||||
{
|
||||
mbOk = false;
|
||||
@@ -276,7 +276,7 @@ bool Statement::isColumnNull(const int aIndex) const
|
||||
// Check if aRet equal SQLITE_OK, else throw a SQLite::Exception with the SQLite error message
|
||||
void Statement::check(const int aRet)
|
||||
{
|
||||
mStmtPtr.setLastStatus (aRet) ;
|
||||
mStmtPtr.setLastStatus(aRet);
|
||||
if (SQLITE_OK != aRet)
|
||||
{
|
||||
throw SQLite::Exception(sqlite3_errmsg(mStmtPtr));
|
||||
@@ -346,7 +346,8 @@ Statement::Ptr::~Ptr() noexcept // nothrow
|
||||
// as no Statement not Column objet use it anymore
|
||||
int ret = sqlite3_finalize(mpStmt);
|
||||
// Never throw an exception in a destructor
|
||||
SQLITECPP_ASSERT((SQLITE_OK == ret || mLastStatus == ret), sqlite3_errmsg(mpSQLite)); // See SQLITECPP_ENABLE_ASSERT_HANDLER
|
||||
SQLITECPP_ASSERT((SQLITE_OK == ret || mLastStatus == ret),
|
||||
sqlite3_errmsg(mpSQLite)); // See SQLITECPP_ENABLE_ASSERT_HANDLER
|
||||
|
||||
// and delete the reference counter
|
||||
delete mpRefCount;
|
||||
|
||||
Reference in New Issue
Block a user