projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
732ce79
)
Fix reset() to use rvalue references.
author
Carl Hetherington
<cth@carlh.net>
Sat, 14 Jan 2023 23:16:21 +0000
(
00:16
+0100)
committer
Carl Hetherington
<cth@carlh.net>
Sat, 14 Jan 2023 23:16:21 +0000
(
00:16
+0100)
src/wx/wx_ptr.h
patch
|
blob
|
history
diff --git
a/src/wx/wx_ptr.h
b/src/wx/wx_ptr.h
index 7eff673a4e0d16e42519dec8b15b7d30f0f3e92c..96459183ee070832a3e887e53d9def687f490399 100644
(file)
--- a/
src/wx/wx_ptr.h
+++ b/
src/wx/wx_ptr.h
@@
-68,7
+68,7
@@
public:
}
template <typename... Args>
}
template <typename... Args>
- void reset(Args... args)
+ void reset(Args
&&
... args)
{
if (_wx) {
_wx->Destroy();
{
if (_wx) {
_wx->Destroy();