From: Carl Hetherington Date: Sat, 14 Jan 2023 23:16:21 +0000 (+0100) Subject: Fix reset() to use rvalue references. X-Git-Tag: v2.16.41~51 X-Git-Url: https://main.carlh.net/gitweb/?a=commitdiff_plain;h=e6c2c489924fbe2f8db70030f1774541a819d46c;p=dcpomatic.git Fix reset() to use rvalue references. --- diff --git a/src/wx/wx_ptr.h b/src/wx/wx_ptr.h index 7eff673a4..96459183e 100644 --- a/src/wx/wx_ptr.h +++ b/src/wx/wx_ptr.h @@ -68,7 +68,7 @@ public: } template - void reset(Args... args) + void reset(Args&&... args) { if (_wx) { _wx->Destroy();