Commit 3a7129c0 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

SqliteTools: Fix minor type mismatch

Traits function expect signed int, as this is what sqlite expect
parent 0cf87a23
...@@ -214,7 +214,7 @@ class Tools ...@@ -214,7 +214,7 @@ class Tools
return _prepareRequest<1>( dbConnection, req, std::forward<Args>( args )... ); return _prepareRequest<1>( dbConnection, req, std::forward<Args>( args )... );
} }
template <unsigned int> template <int>
static StmtPtr _prepareRequest( DBConnection dbConnection, const std::string& req ) static StmtPtr _prepareRequest( DBConnection dbConnection, const std::string& req )
{ {
sqlite3_stmt* stmt = nullptr; sqlite3_stmt* stmt = nullptr;
...@@ -227,7 +227,7 @@ class Tools ...@@ -227,7 +227,7 @@ class Tools
return StmtPtr( stmt, &sqlite3_finalize ); return StmtPtr( stmt, &sqlite3_finalize );
} }
template <unsigned int COLIDX, typename T, typename... Args> template <int COLIDX, typename T, typename... Args>
static StmtPtr _prepareRequest( DBConnection dbConnection, const std::string& req, T&& arg, Args&&... args ) static StmtPtr _prepareRequest( DBConnection dbConnection, const std::string& req, T&& arg, Args&&... args )
{ {
auto stmt = _prepareRequest<COLIDX + 1>( dbConnection, req, std::forward<Args>( args )... ); auto stmt = _prepareRequest<COLIDX + 1>( dbConnection, req, std::forward<Args>( args )... );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment