const & parameter
This commit is contained in:
parent
2618f7b7ae
commit
e84d63c138
2
ml.cpp
2
ml.cpp
|
|
@ -644,7 +644,7 @@ std::ostream &operator<<(std::ostream &os, MlEnvironment const &e) {
|
||||||
return os << "}";
|
return os << "}";
|
||||||
}
|
}
|
||||||
|
|
||||||
void MlEnvironment::set(std::string name, MlValue value) {
|
void MlEnvironment::set(const std::string &name, MlValue value) {
|
||||||
defs[name] = value;
|
defs[name] = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
2
ml.h
2
ml.h
|
|
@ -28,7 +28,7 @@ public:
|
||||||
MlValue get(const std::string &name) const;
|
MlValue get(const std::string &name) const;
|
||||||
|
|
||||||
// Set the value associated with this name in this scope
|
// Set the value associated with this name in this scope
|
||||||
void set(std::string name, MlValue value);
|
void set(const std::string &name, MlValue value);
|
||||||
|
|
||||||
void combine(MlEnvironment const &other);
|
void combine(MlEnvironment const &other);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue