mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Scope: Vars() returns const reference
No caller wants to modify the container.
This commit is contained in:
parent
acdfd5706e
commit
f8e9cc0fc5
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ public:
|
||||||
BroType* ReturnType() const { return return_type; }
|
BroType* ReturnType() const { return return_type; }
|
||||||
|
|
||||||
size_t Length() const { return local.size(); }
|
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);
|
ID* GenerateTemporary(const char* name);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue