From bd89362f08dc07b3444d19bc373f2b4f8bc47b2c Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 25 Dec 2017 16:13:15 -0500 Subject: Use std::move to potentially avoid copying --- src/gui/ConnectWindow.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gui/ConnectWindow.cpp') diff --git a/src/gui/ConnectWindow.cpp b/src/gui/ConnectWindow.cpp index 74cba256..7cacb498 100644 --- a/src/gui/ConnectWindow.cpp +++ b/src/gui/ConnectWindow.cpp @@ -45,10 +45,10 @@ using namespace Ingen::Client; namespace Ingen { namespace GUI { -ConnectWindow::ConnectWindow(BaseObjectType* cobject, - const Glib::RefPtr& xml) +ConnectWindow::ConnectWindow(BaseObjectType* cobject, + Glib::RefPtr xml) : Dialog(cobject) - , _xml(xml) + , _xml(std::move(xml)) , _icon(nullptr) , _progress_bar(nullptr) , _progress_label(nullptr) -- cgit v1.2.1