diff --git a/src/SQLiteC++/Statement.cpp b/src/SQLiteC++/Statement.cpp index dd3437b..b6b5c74 100644 --- a/src/SQLiteC++/Statement.cpp +++ b/src/SQLiteC++/Statement.cpp @@ -269,7 +269,7 @@ Statement::Ptr::Ptr(sqlite3* apSQLite, std::string& aQuery) : * * @param[in] aPtr Pointer to copy */ -Statement::Ptr::Ptr (const Statement::Ptr& aPtr) : +Statement::Ptr::Ptr(const Statement::Ptr& aPtr) : mpSQLite(aPtr.mpSQLite), mpStmt(aPtr.mpStmt), mpRefCount(aPtr.mpRefCount) @@ -285,7 +285,7 @@ Statement::Ptr::Ptr (const Statement::Ptr& aPtr) : /** * Decrement the ref counter and finalize the sqlite3_stmt when it reaches 0 */ -Statement::Ptr::~Ptr(void) +Statement::Ptr::~Ptr(void) throw() // nothrow { assert(NULL != mpRefCount); assert(0 != *mpRefCount); diff --git a/src/SQLiteC++/Statement.h b/src/SQLiteC++/Statement.h index 442b2e1..c28b118 100644 --- a/src/SQLiteC++/Statement.h +++ b/src/SQLiteC++/Statement.h @@ -222,7 +222,7 @@ public: * * This is a internal class, not part of the API (hence full documentation is in the cpp). */ - class Statement::Ptr + class Ptr { public: // Prepare the statement and initialize its reference counter diff --git a/src/example1/main.cpp b/src/example1/main.cpp index 90a419c..5dd18a9 100644 --- a/src/example1/main.cpp +++ b/src/example1/main.cpp @@ -11,7 +11,8 @@ */ #include -#include "stdio.h" +#include +#include #include "../SQLiteC++/Database.h" #include "../SQLiteC++/Statement.h" @@ -259,5 +260,7 @@ int main (void) } remove("transaction.db3"); + std::cout << "everything ok, quitting" << std::endl; + return 0; }