From 64b7153ce0079f62331a2e66f45c4bbd0c703028 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Sun, 20 Oct 2019 19:38:38 -0500 Subject: hscript: constness fixes for ScriptOptions --- hscript/script.hh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'hscript/script.hh') diff --git a/hscript/script.hh b/hscript/script.hh index 2d3d5c8..9fd186a 100644 --- a/hscript/script.hh +++ b/hscript/script.hh @@ -58,13 +58,15 @@ public: * @param options Options to use for parsing, validation, and execution. * @return true if the Script could be loaded; false otherwise. */ - static const Script *load(const std::string path, const ScriptOptions options = 0); + static const Script *load(const std::string &path, + const ScriptOptions &options = 0); /*! Load a HorizonScript from the specified stream. * @param stream The stream to load from. * @param options Options to use for parsing, validation, and execution. * @return true if the Script could be loaded; false otherwise. */ - static const Script *load(std::istream &stream, const ScriptOptions options = 0); + static const Script *load(std::istream &stream, + const ScriptOptions &options = 0); /*! Determines if the HorizonScript is valid. */ bool validate() const; -- cgit v1.2.3-60-g2f50