diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-10-13 07:33:50 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-10-13 07:33:50 -0500 |
commit | c6b3e345b4e9c6e8797e2b0e1e2b31eca4d62b73 (patch) | |
tree | 16db010aa87c0bd37a718038b00fe1e28b7bd061 /hscript/script.cc | |
parent | 2eeea474af5a405622c038d93f7a466789114ffe (diff) | |
download | horizon-c6b3e345b4e9c6e8797e2b0e1e2b31eca4d62b73.tar.gz horizon-c6b3e345b4e9c6e8797e2b0e1e2b31eca4d62b73.tar.bz2 horizon-c6b3e345b4e9c6e8797e2b0e1e2b31eca4d62b73.tar.xz horizon-c6b3e345b4e9c6e8797e2b0e1e2b31eca4d62b73.zip |
hscript: Pass data by reference
Diffstat (limited to 'hscript/script.cc')
-rw-r--r-- | hscript/script.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hscript/script.cc b/hscript/script.cc index d70a552..8afa6aa 100644 --- a/hscript/script.cc +++ b/hscript/script.cc @@ -28,7 +28,7 @@ #define LINE_MAX 512 -typedef Horizon::Keys::Key *(*key_parse_fn)(std::string, int, int*, int*); +typedef Horizon::Keys::Key *(*key_parse_fn)(const std::string &, int, int*, int*); const std::map<std::string, key_parse_fn> valid_keys = { {"network", &Horizon::Keys::Network::parseFromData}, |