From 83ad9c6c4d015ff1a8075bf69036d284af24a18e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 6 Oct 2024 17:14:26 -0400 Subject: Pass strings and large structures by const reference --- src/URI.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/URI.cpp') diff --git a/src/URI.cpp b/src/URI.cpp index c4020c4d..81dd5686 100644 --- a/src/URI.cpp +++ b/src/URI.cpp @@ -52,14 +52,14 @@ URI::URI(const std::string& str, const URI& base) { } -URI::URI(SerdNode node) +URI::URI(const SerdNode& node) : _uri(SERD_URI_NULL) , _node(serd_node_new_uri_from_node(&node, nullptr, &_uri)) { assert(node.type == SERD_URI); } -URI::URI(SerdNode node, SerdURI uri) : _uri(uri), _node(node) +URI::URI(const SerdNode& node, const SerdURI& uri) : _uri(uri), _node(node) { assert(node.type == SERD_URI); } -- cgit v1.2.1