Skip to content
Permalink
Browse files

Const correctness for sqlite_database_unique_ptr

  • Loading branch information
m-kuhn committed Nov 15, 2017
1 parent c5667db commit 43329f50d63b331c5abcfa24ecbdcd5f17f5a22b
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/core/qgssqliteutils.cpp
  2. +1 −1 src/core/qgssqliteutils.h
@@ -60,7 +60,7 @@ QString sqlite3_database_unique_ptr::errorMessage() const
return QString( sqlite3_errmsg( get() ) );
}

sqlite3_statement_unique_ptr sqlite3_database_unique_ptr::prepare( const QString &sql, int &resultCode )
sqlite3_statement_unique_ptr sqlite3_database_unique_ptr::prepare( const QString &sql, int &resultCode ) const
{
sqlite3_stmt *preparedStatement = nullptr;
const char *tail = nullptr;
@@ -115,7 +115,7 @@ class CORE_EXPORT sqlite3_database_unique_ptr : public std::unique_ptr< sqlite3,
* Prepares a \a sql statement, returning the result. The \a resultCode
* argument will be filled with the sqlite3 result code.
*/
sqlite3_statement_unique_ptr prepare( const QString &sql, int &resultCode );
sqlite3_statement_unique_ptr prepare( const QString &sql, int &resultCode ) const;

};

0 comments on commit 43329f5

Please sign in to comment.
You can’t perform that action at this time.