mirror of
https://github.com/cuberite/SQLiteCpp.git
synced 2025-08-05 02:06:02 -04:00
Repairing Linux compilation
This commit is contained in:
parent
0d08dc1e45
commit
545dd01bc6
@ -269,7 +269,7 @@ Statement::Ptr::Ptr(sqlite3* apSQLite, std::string& aQuery) :
|
|||||||
*
|
*
|
||||||
* @param[in] aPtr Pointer to copy
|
* @param[in] aPtr Pointer to copy
|
||||||
*/
|
*/
|
||||||
Statement::Ptr::Ptr (const Statement::Ptr& aPtr) :
|
Statement::Ptr::Ptr(const Statement::Ptr& aPtr) :
|
||||||
mpSQLite(aPtr.mpSQLite),
|
mpSQLite(aPtr.mpSQLite),
|
||||||
mpStmt(aPtr.mpStmt),
|
mpStmt(aPtr.mpStmt),
|
||||||
mpRefCount(aPtr.mpRefCount)
|
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
|
* 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(NULL != mpRefCount);
|
||||||
assert(0 != *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).
|
* This is a internal class, not part of the API (hence full documentation is in the cpp).
|
||||||
*/
|
*/
|
||||||
class Statement::Ptr
|
class Ptr
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
// Prepare the statement and initialize its reference counter
|
// Prepare the statement and initialize its reference counter
|
||||||
|
@ -11,7 +11,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include "stdio.h"
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include "../SQLiteC++/Database.h"
|
#include "../SQLiteC++/Database.h"
|
||||||
#include "../SQLiteC++/Statement.h"
|
#include "../SQLiteC++/Statement.h"
|
||||||
@ -257,5 +258,7 @@ int main (void)
|
|||||||
}
|
}
|
||||||
remove("transaction.db3");
|
remove("transaction.db3");
|
||||||
|
|
||||||
|
std::cout << "everything ok, quitting" << std::endl;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user