Change lookup_ID() to return a const-reference

This commit is contained in:
Jon Siwek 2020-05-12 22:41:52 -07:00
parent 8f95a2a0bb
commit 0af7f8141b
9 changed files with 32 additions and 28 deletions

View file

@ -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);