Fixed whitespace issues

This commit is contained in:
AndyLing
2014-09-19 12:00:27 +01:00
parent 4e770eb741
commit bb7a047d52
2 changed files with 15 additions and 14 deletions

View File

@@ -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;