aboutsummaryrefslogtreecommitdiff
path: root/src/libcmd/repl.cc
diff options
context:
space:
mode:
authorBen Burdette <bburdette@protonmail.com>2022-05-19 12:44:40 -0600
committerBen Burdette <bburdette@protonmail.com>2022-05-19 12:44:40 -0600
commit7ddef73d026d79adc0c4f3fd1518d88d1331c38c (patch)
tree791f8f891f09f90712d91c94ae4dad15ec114871 /src/libcmd/repl.cc
parentf9cdb6af8dea863b325210d59a1f2e865a06010e (diff)
de-const evalState exceptions
Diffstat (limited to 'src/libcmd/repl.cc')
-rw-r--r--src/libcmd/repl.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libcmd/repl.cc b/src/libcmd/repl.cc
index 5b17f2fb2..5aecf3ac3 100644
--- a/src/libcmd/repl.cc
+++ b/src/libcmd/repl.cc
@@ -96,6 +96,7 @@ std::string removeWhitespace(std::string s)
}
+// NixRepl::NixRepl(ref<EvalState> state)
NixRepl::NixRepl(ref<EvalState> state)
: state(state)
, debugTraceIndex(0)
@@ -1012,7 +1013,8 @@ std::ostream & NixRepl::printValue(std::ostream & str, Value & v, unsigned int m
}
void runRepl(
- EvalState& evalState,
+ ref<EvalState> evalState,
+ // EvalState& evalState,
const ValMap & extraEnv)
{
auto repl = std::make_unique<NixRepl>(evalState);