mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 10:08:20 +00:00
Base: Clean up explicit uses of namespaces in places where they're not necessary.
This commit covers all of the common and base classes.
This commit is contained in:
parent
9f802b2a4d
commit
fe0c22c789
240 changed files with 6823 additions and 6787 deletions
|
@ -99,7 +99,7 @@ public:
|
|||
}
|
||||
|
||||
IntrusivePtr(const IntrusivePtr& other) noexcept
|
||||
: IntrusivePtr(zeek::NewRef{}, other.get())
|
||||
: IntrusivePtr(NewRef{}, other.get())
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -183,7 +183,7 @@ template <class T, class... Ts>
|
|||
IntrusivePtr<T> make_intrusive(Ts&&... args)
|
||||
{
|
||||
// Assumes that objects start with a reference count of 1!
|
||||
return {zeek::AdoptRef{}, new T(std::forward<Ts>(args)...)};
|
||||
return {AdoptRef{}, new T(std::forward<Ts>(args)...)};
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -195,7 +195,7 @@ IntrusivePtr<T> make_intrusive(Ts&&... args)
|
|||
template <class T, class U>
|
||||
IntrusivePtr<T> cast_intrusive(IntrusivePtr<U> p) noexcept
|
||||
{
|
||||
return {zeek::AdoptRef{}, static_cast<T*>(p.release())};
|
||||
return {AdoptRef{}, static_cast<T*>(p.release())};
|
||||
}
|
||||
|
||||
} // namespace zeek
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue