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:
Tim Wojtulewicz 2020-08-21 09:29:37 -07:00
parent 9f802b2a4d
commit fe0c22c789
240 changed files with 6823 additions and 6787 deletions

View file

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