From 1b2916c8451506adccf3ab0a56bbf836d9f3cb36 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 10 Jan 2023 20:57:56 +0000 Subject: Avoid copying shared_ptr when not necessary. --- src/configparser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/configparser.cpp') diff --git a/src/configparser.cpp b/src/configparser.cpp index f5a0ceab6..611aa8aeb 100644 --- a/src/configparser.cpp +++ b/src/configparser.cpp @@ -342,7 +342,7 @@ std::string FilePosition::str() const return name + ":" + ConvToStr(line) + ":" + ConvToStr(column); } -void ParseStack::DoInclude(std::shared_ptr tag, int flags) +void ParseStack::DoInclude(const std::shared_ptr& tag, int flags) { if (flags & FLAG_NO_INC) throw CoreException("Invalid tag in file included with noinclude=\"yes\""); -- cgit v1.3.1-10-gc9f91