diff options
author | David Robillard <d@drobilla.net> | 2020-12-16 17:03:02 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-12-16 17:03:02 +0100 |
commit | 3cd021a5059abf291adb2250dfe668b50de7847c (patch) | |
tree | deb8a2832b48cf173dbb5d3d0644e9cd24c3b54c | |
parent | 0b08849130e9d4ad28a6c8a472083913605d9187 (diff) | |
download | lilv-3cd021a5059abf291adb2250dfe668b50de7847c.tar.gz lilv-3cd021a5059abf291adb2250dfe668b50de7847c.tar.bz2 lilv-3cd021a5059abf291adb2250dfe668b50de7847c.zip |
C++: Avoid unnecessary parameter copy overhead
-rw-r--r-- | lilv/lilvmm.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
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)); |