Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
VideoLAN
medialibrary
Commits
8b3dfd26
Commit
8b3dfd26
authored
Oct 07, 2015
by
Hugo Beauzée-Luyssen
Browse files
Cache: Fix insert params perfect forwarding
parent
aecbda77
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/database/Cache.h
View file @
8b3dfd26
...
...
@@ -141,9 +141,9 @@ class Cache
* Create a new instance of the cache class.
*/
template
<
typename
...
Args
>
static
bool
insert
(
DBConnection
dbConnectionWeak
,
std
::
shared_ptr
<
IMPL
>
self
,
const
std
::
string
&
req
,
const
Args
&
...
args
)
static
bool
insert
(
DBConnection
dbConnectionWeak
,
std
::
shared_ptr
<
IMPL
>
self
,
const
std
::
string
&
req
,
Args
&
&
...
args
)
{
unsigned
int
pKey
=
sqlite
::
Tools
::
insert
(
dbConnectionWeak
,
req
,
args
...
);
unsigned
int
pKey
=
sqlite
::
Tools
::
insert
(
dbConnectionWeak
,
req
,
std
::
forward
<
Args
>
(
args
)
...
);
if
(
pKey
==
0
)
return
false
;
(
self
.
get
())
->*
TABLEPOLICY
::
PrimaryKey
=
pKey
;
...
...
Write
Preview
Supports
Markdown
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