Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
VideoLAN
medialibrary
Commits
3a7129c0
Commit
3a7129c0
authored
Oct 09, 2015
by
Hugo Beauzée-Luyssen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SqliteTools: Fix minor type mismatch
Traits function expect signed int, as this is what sqlite expect
parent
0cf87a23
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/database/SqliteTools.h
src/database/SqliteTools.h
+2
-2
No files found.
src/database/SqliteTools.h
View file @
3a7129c0
...
...
@@ -214,7 +214,7 @@ class Tools
return
_prepareRequest
<
1
>
(
dbConnection
,
req
,
std
::
forward
<
Args
>
(
args
)...
);
}
template
<
unsigned
int
>
template
<
int
>
static
StmtPtr
_prepareRequest
(
DBConnection
dbConnection
,
const
std
::
string
&
req
)
{
sqlite3_stmt
*
stmt
=
nullptr
;
...
...
@@ -227,7 +227,7 @@ class Tools
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
)
{
auto
stmt
=
_prepareRequest
<
COLIDX
+
1
>
(
dbConnection
,
req
,
std
::
forward
<
Args
>
(
args
)...
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment