aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/eval.hh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2022-05-25 12:32:22 +0200
committerEelco Dolstra <edolstra@gmail.com>2022-05-25 12:32:22 +0200
commit91b7d5373acdc5d9b3f2c13d16b9850ab5fc9e9d (patch)
treef807d49aefb53b7864109a9a1dc3780840872e53 /src/libexpr/eval.hh
parentba035f7dd03232d093a1265778b9587bab92cf1d (diff)
Style tweaks
Diffstat (limited to 'src/libexpr/eval.hh')
-rw-r--r--src/libexpr/eval.hh10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libexpr/eval.hh b/src/libexpr/eval.hh
index c86075ae3..3444815fd 100644
--- a/src/libexpr/eval.hh
+++ b/src/libexpr/eval.hh
@@ -131,11 +131,11 @@ public:
bool debugStop;
bool debugQuit;
std::list<DebugTrace> debugTraces;
- std::map<const Expr*, const std::shared_ptr<const StaticEnv> > exprEnvs;
- const std::shared_ptr<const StaticEnv> getStaticEnv(const Expr &expr) const
+ std::map<const Expr*, const std::shared_ptr<const StaticEnv>> exprEnvs;
+ const std::shared_ptr<const StaticEnv> getStaticEnv(const Expr & expr) const
{
auto i = exprEnvs.find(&expr);
- if (i != exprEnvs.end())
+ if (i != exprEnvs.end())
return i->second;
else
return std::shared_ptr<const StaticEnv>();;
@@ -145,7 +145,7 @@ public:
template<class E>
[[gnu::noinline, gnu::noreturn]]
- void debugThrow(const E &error, const Env & env, const Expr & expr)
+ void debugThrow(E && error, const Env & env, const Expr & expr)
{
if (debugRepl)
runDebugRepl(&error, env, expr);
@@ -155,7 +155,7 @@ public:
template<class E>
[[gnu::noinline, gnu::noreturn]]
- void debugThrowLastTrace(E & e)
+ void debugThrowLastTrace(E && e)
{
// Call this in the situation where Expr and Env are inaccessible.
// The debugger will start in the last context that's in the