From c335af83e021311635256435a1321462b8f5be51 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Mon, 7 Oct 2019 17:48:11 -0500 Subject: hscript: constness fixes --- hscript/script.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hscript/script.cc') diff --git a/hscript/script.cc b/hscript/script.cc index 01c920d..3196d9e 100644 --- a/hscript/script.cc +++ b/hscript/script.cc @@ -42,7 +42,7 @@ Script::Script() { internal = new ScriptPrivate; } -const Script *Script::load(std::string path, ScriptOptions opts) { +const Script *Script::load(const std::string path, const ScriptOptions opts) { std::ifstream file(path); if(!file) { output_error(path, "Cannot open installfile", "", @@ -73,7 +73,7 @@ bool is_key(std::string key) { output_warning("installfile:" + std::to_string(lineno),\ warn_str, "", (opts.test(Pretty))); -const Script *Script::load(std::istream &sstream, ScriptOptions opts) { +const Script *Script::load(std::istream &sstream, const ScriptOptions opts) { Script *the_script = new Script; int lineno = 0; -- cgit v1.2.3-60-g2f50