diff options
Diffstat (limited to 'src/backends/SQLite/literecipedb.cpp')
| -rw-r--r-- | src/backends/SQLite/literecipedb.cpp | 18 | 
1 files changed, 4 insertions, 14 deletions
| diff --git a/src/backends/SQLite/literecipedb.cpp b/src/backends/SQLite/literecipedb.cpp index 9531791..fa5577a 100644 --- a/src/backends/SQLite/literecipedb.cpp +++ b/src/backends/SQLite/literecipedb.cpp @@ -27,8 +27,6 @@  #if HAVE_SQLITE3  #include <sqlite3.h> -#elif HAVE_SQLITE -#include <sqlite.h>  #endif  //keep these two around for porting old databases @@ -63,9 +61,7 @@ int LiteRecipeDB::lastInsertID()  TQStringList LiteRecipeDB::backupCommand() const  { -	#if HAVE_SQLITE -	TQString binary = "sqlite"; -	#elif HAVE_SQLITE3 +	#if HAVE_SQLITE3  	TQString binary = "sqlite3";  	#endif @@ -80,9 +76,7 @@ TQStringList LiteRecipeDB::backupCommand() const  TQStringList LiteRecipeDB::restoreCommand() const  { -	#if HAVE_SQLITE -	TQString binary = "sqlite"; -	#elif HAVE_SQLITE3 +	#if HAVE_SQLITE3  	TQString binary = "sqlite3";  	#endif @@ -1014,15 +1008,11 @@ TQString escape( const TQString &s )  	if ( !s_escaped.isEmpty() ) { //###: sqlite_mprintf() seems to fill an empty string with garbage  		// Escape using SQLite's function -#if HAVE_SQLITE -		char * escaped = sqlite_mprintf( "%q", s.latin1() ); // Escape the string(allocates memory) -#elif HAVE_SQLITE3 +#if HAVE_SQLITE3  		char * escaped = sqlite3_mprintf( "%q", s.latin1() ); // Escape the string(allocates memory)  #endif  		s_escaped = escaped; -#if HAVE_SQLITE -		sqlite_freemem( escaped ); // free allocated memory -#elif HAVE_SQLITE3 +#if HAVE_SQLITE3  		sqlite3_free( escaped ); // free allocated memory  #endif  	} | 
