summaryrefslogtreecommitdiff
path: root/hscript/key.cc
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-10-13 07:33:50 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-10-13 07:33:50 -0500
commitc6b3e345b4e9c6e8797e2b0e1e2b31eca4d62b73 (patch)
tree16db010aa87c0bd37a718038b00fe1e28b7bd061 /hscript/key.cc
parent2eeea474af5a405622c038d93f7a466789114ffe (diff)
downloadhorizon-c6b3e345b4e9c6e8797e2b0e1e2b31eca4d62b73.tar.gz
horizon-c6b3e345b4e9c6e8797e2b0e1e2b31eca4d62b73.tar.bz2
horizon-c6b3e345b4e9c6e8797e2b0e1e2b31eca4d62b73.tar.xz
horizon-c6b3e345b4e9c6e8797e2b0e1e2b31eca4d62b73.zip
hscript: Pass data by reference
Diffstat (limited to 'hscript/key.cc')
-rw-r--r--hscript/key.cc6
1 files changed, 3 insertions, 3 deletions
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);