mirror of
https://github.com/cuberite/SQLiteCpp.git
synced 2025-08-04 17:56:13 -04:00
Merge branch 'master' of https://github.com/SRombauts/SQLiteCpp
This commit is contained in:
commit
8fa9d7ac09
@ -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);
|
||||
|
@ -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
|
||||
|
@ -11,7 +11,8 @@
|
||||
*/
|
||||
|
||||
#include <iostream>
|
||||
#include "stdio.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user