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/meta.hh | |
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/meta.hh')
-rw-r--r-- | hscript/meta.hh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hscript/meta.hh b/hscript/meta.hh index 846158d..b73cda4 100644 --- a/hscript/meta.hh +++ b/hscript/meta.hh @@ -25,7 +25,7 @@ private: Hostname(int _line, const std::string my_name) : StringKey(_line, my_name) {} public: - static Key *parseFromData(const std::string data, int lineno, int *errors, + static Key *parseFromData(const std::string &data, int lineno, int *errors, int *warnings); bool validate(ScriptOptions) const override; bool execute(ScriptOptions) const override; @@ -37,7 +37,7 @@ private: PkgInstall(int _line, const std::set<std::string> my_pkgs) : Key(_line), _pkgs(my_pkgs) {} public: - static Key *parseFromData(const std::string data, int lineno, int *errors, + static Key *parseFromData(const std::string &data, int lineno, int *errors, int *warnings); const std::set<std::string> packages() const { return _pkgs; } bool validate(ScriptOptions) const override { return true; } @@ -62,7 +62,7 @@ private: Repository(int _line, const std::string my_url) : StringKey(_line, my_url) {} public: - static Key *parseFromData(const std::string data, int lineno, int *errors, + static Key *parseFromData(const std::string &data, int lineno, int *errors, int *warnings); bool validate(ScriptOptions) const override; bool execute(ScriptOptions) const override; |