Repairing Linux compilation

This commit is contained in:
Sébastien Rombauts 2013-03-09 08:40:03 +01:00
parent 0d08dc1e45
commit 545dd01bc6
3 changed files with 7 additions and 4 deletions

View File

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

View File

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

View File

@ -11,7 +11,8 @@
*/
#include <iostream>
#include "stdio.h"
#include <stdio.h>
#include <stdlib.h>
#include "../SQLiteC++/Database.h"
#include "../SQLiteC++/Statement.h"
@ -257,5 +258,7 @@ int main (void)
}
remove("transaction.db3");
std::cout << "everything ok, quitting" << std::endl;
return 0;
}