From: Arvin Schnell Date: Thu, 27 Aug 2015 09:18:37 +0000 (+0200) Subject: - pass list by reference X-Git-Tag: v0.2.8^2~1 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=42febc3a2d3ffe5bdde4ccd64fb89eb2bb979004;p=thirdparty%2Fsnapper.git - pass list by reference --- diff --git a/client/commands.cc b/client/commands.cc index 4366fa0f..02df9ad6 100644 --- a/client/commands.cc +++ b/client/commands.cc @@ -263,7 +263,7 @@ command_create_post_xsnapshot(DBus::Connection& conn, const string& config_name, void command_delete_xsnapshots(DBus::Connection& conn, const string& config_name, - list nums, bool verbose) + const list& nums, bool verbose) { DBus::MessageMethodCall call(SERVICE, OBJECT, INTERFACE, "DeleteSnapshots"); diff --git a/client/commands.h b/client/commands.h index 2e46c53a..7b1c188e 100644 --- a/client/commands.h +++ b/client/commands.h @@ -89,7 +89,7 @@ command_create_post_xsnapshot(DBus::Connection& conn, const string& config_name, void command_delete_xsnapshots(DBus::Connection& conn, const string& config_name, - list nums, bool verbose); + const list& nums, bool verbose); string command_mount_xsnapshots(DBus::Connection& conn, const string& config_name,