mirror of
https://github.com/zeek/zeek.git
synced 2025-10-15 04:58:21 +00:00
Change lookup_ID() to return a const-reference
This commit is contained in:
parent
8f95a2a0bb
commit
0af7f8141b
9 changed files with 32 additions and 28 deletions
|
@ -90,10 +90,10 @@ protected:
|
|||
extern bool in_debug;
|
||||
|
||||
// If no_global is true, don't search in the default "global" namespace.
|
||||
extern IntrusivePtr<ID> lookup_ID(const char* name, const char* module,
|
||||
bool no_global = false,
|
||||
bool same_module_only = false,
|
||||
bool check_export = true);
|
||||
extern const IntrusivePtr<ID>& lookup_ID(const char* name, const char* module,
|
||||
bool no_global = false,
|
||||
bool same_module_only = false,
|
||||
bool check_export = true);
|
||||
|
||||
extern IntrusivePtr<ID> install_ID(const char* name, const char* module_name,
|
||||
bool is_global, bool is_export);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue