From c6b3e345b4e9c6e8797e2b0e1e2b31eca4d62b73 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Sun, 13 Oct 2019 07:33:50 -0500 Subject: hscript: Pass data by reference --- hscript/key.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'hscript/key.cc') diff --git a/hscript/key.cc b/hscript/key.cc index 80ebfc6..10191e0 100644 --- a/hscript/key.cc +++ b/hscript/key.cc @@ -17,9 +17,9 @@ Horizon::Keys::Key::~Key() { } -bool Horizon::Keys::BooleanKey::parse(const std::string what, - const std::string where, - const std::string key, bool *out) { +bool Horizon::Keys::BooleanKey::parse(const std::string &what, + const std::string &where, + const std::string &key, bool *out) { std::string lower(what.size(), 0); std::transform(what.begin(), what.end(), lower.begin(), ::tolower); -- cgit v1.2.3-60-g2f50