Scope: Vars() returns const reference

No caller wants to modify the container.
This commit is contained in:
Max Kellermann 2020-02-04 11:53:43 +01:00
parent acdfd5706e
commit f8e9cc0fc5

View file

@ -45,7 +45,7 @@ public:
BroType* ReturnType() const { return return_type; }
size_t Length() const { return local.size(); }
std::map<std::string, ID*>& Vars() { return local; }
const std::map<std::string, ID*>& Vars() { return local; }
ID* GenerateTemporary(const char* name);