From 3a809627e16b4177af27cde54e6acaffa8c7d691 Mon Sep 17 00:00:00 2001 From: Neil Date: Sat, 20 Aug 2016 15:12:10 +1000 Subject: Use const reference parameter when it can prevent extra copies. --- lexers/LexCPP.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lexers/LexCPP.cxx b/lexers/LexCPP.cxx index 4261084d4..19b675f59 100644 --- a/lexers/LexCPP.cxx +++ b/lexers/LexCPP.cxx @@ -229,7 +229,7 @@ struct PPDefinition { std::string value; bool isUndef; std::string arguments; - PPDefinition(Sci_Position line_, const std::string &key_, const std::string &value_, bool isUndef_ = false, std::string arguments_="") : + PPDefinition(Sci_Position line_, const std::string &key_, const std::string &value_, bool isUndef_ = false, const std::string &arguments_="") : line(line_), key(key_), value(value_), isUndef(isUndef_), arguments(arguments_) { } }; -- cgit v1.2.3