diff options
author | Neil <nyamatongwe@gmail.com> | 2016-08-20 15:12:10 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2016-08-20 15:12:10 +1000 |
commit | 3a809627e16b4177af27cde54e6acaffa8c7d691 (patch) | |
tree | af13a87a744fe3a331273803e1f5bda8cb3f87bf /lexers/LexCPP.cxx | |
parent | 2d5cfce5a832cbdf57889dff848be4e16c5b1781 (diff) | |
download | scintilla-mirror-3a809627e16b4177af27cde54e6acaffa8c7d691.tar.gz |
Use const reference parameter when it can prevent extra copies.
Diffstat (limited to 'lexers/LexCPP.cxx')
-rw-r--r-- | lexers/LexCPP.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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_) { } }; |