From 3cd021a5059abf291adb2250dfe668b50de7847c Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 16 Dec 2020 17:03:02 +0100 Subject: C++: Avoid unnecessary parameter copy overhead --- lilv/lilvmm.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lilv/lilvmm.hpp') diff --git a/lilv/lilvmm.hpp b/lilv/lilvmm.hpp index 59665cf..0b7ee4d 100644 --- a/lilv/lilvmm.hpp +++ b/lilv/lilvmm.hpp @@ -167,7 +167,7 @@ struct ScalePoints { struct Nodes { LILV_WRAP_COLL(Nodes, Node, nodes); - LILV_WRAP1(bool, nodes, contains, const Node, node); + LILV_WRAP1(bool, nodes, contains, const Node&, node); LILV_WRAP0(Node, nodes, get_first); }; @@ -232,8 +232,8 @@ struct Plugin { LILV_WRAP0(Node, plugin, get_library_uri); LILV_WRAP0(Node, plugin, get_name); LILV_WRAP0(PluginClass, plugin, get_class); - LILV_WRAP1(Nodes, plugin, get_value, Node, pred); - LILV_WRAP1(bool, plugin, has_feature, Node, feature_uri); + LILV_WRAP1(Nodes, plugin, get_value, const Node&, pred); + LILV_WRAP1(bool, plugin, has_feature, const Node&, feature_uri); LILV_WRAP0(Nodes, plugin, get_supported_features); LILV_WRAP0(Nodes, plugin, get_required_features); LILV_WRAP0(Nodes, plugin, get_optional_features); @@ -246,7 +246,7 @@ struct Plugin { LILV_WRAP0(bool, plugin, is_replaced); LILV_WRAP0(Nodes, plugin, get_extension_data); LILV_WRAP0(UIs, plugin, get_uis); - LILV_WRAP1(Nodes, plugin, get_related, Node, type); + LILV_WRAP1(Nodes, plugin, get_related, const Node&, type); inline Port get_port_by_index(unsigned index) { return Port(me, lilv_plugin_get_port_by_index(me, index)); -- cgit v1.2.1