aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2010-05-18 10:36:37 +0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2010-05-18 10:36:37 +0000
commit93cd5a4a13742b48bb1db0cafe36dd90b7abc10d (patch)
treeaf2d956903062a693bf29f246d0555d03d351125 /src/libexpr
parentb2235d81d1b3733a93fdd1397a62d0f49409dcb0 (diff)
* The << operator on values should be const.
Diffstat (limited to 'src/libexpr')
-rw-r--r--src/libexpr/common-opts.cc2
-rw-r--r--src/libexpr/eval.cc2
-rw-r--r--src/libexpr/eval.hh2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/libexpr/common-opts.cc b/src/libexpr/common-opts.cc
index 5a4856568..9131951e3 100644
--- a/src/libexpr/common-opts.cc
+++ b/src/libexpr/common-opts.cc
@@ -23,7 +23,7 @@ bool parseOptionArg(const string & arg, Strings::iterator & i,
Value & v(autoArgs[state.symbols.create(name)].value);
if (arg == "--arg")
- state.mkThunk_( v, parseExprFromString(state, value, absPath(".")));
+ state.mkThunk_(v, parseExprFromString(state, value, absPath(".")));
else
mkString(v, value);
diff --git a/src/libexpr/eval.cc b/src/libexpr/eval.cc
index 14e5cab7d..1ee6c5a7f 100644
--- a/src/libexpr/eval.cc
+++ b/src/libexpr/eval.cc
@@ -16,7 +16,7 @@
namespace nix {
-std::ostream & operator << (std::ostream & str, Value & v)
+std::ostream & operator << (std::ostream & str, const Value & v)
{
switch (v.type) {
case tInt:
diff --git a/src/libexpr/eval.hh b/src/libexpr/eval.hh
index 852485b05..65c689a50 100644
--- a/src/libexpr/eval.hh
+++ b/src/libexpr/eval.hh
@@ -171,7 +171,7 @@ typedef std::map<Path, Path> SrcToStore;
struct EvalState;
-std::ostream & operator << (std::ostream & str, Value & v);
+std::ostream & operator << (std::ostream & str, const Value & v);
class EvalState