diff --git a/webrtc/system_wrappers/interface/scoped_ptr.h b/webrtc/system_wrappers/interface/scoped_ptr.h index 3ca755c075..1beca1b886 100644 --- a/webrtc/system_wrappers/interface/scoped_ptr.h +++ b/webrtc/system_wrappers/interface/scoped_ptr.h @@ -567,18 +567,20 @@ class scoped_ptr { template bool operator!=(scoped_ptr const& p2) const; }; +} // namespace webrtc + template -void swap(scoped_ptr& p1, scoped_ptr& p2) { +void swap(webrtc::scoped_ptr& p1, webrtc::scoped_ptr& p2) { p1.swap(p2); } template -bool operator==(T* p1, const scoped_ptr& p2) { +bool operator==(T* p1, const webrtc::scoped_ptr& p2) { return p1 == p2.get(); } template -bool operator!=(T* p1, const scoped_ptr& p2) { +bool operator!=(T* p1, const webrtc::scoped_ptr& p2) { return p1 != p2.get(); } @@ -586,10 +588,8 @@ bool operator!=(T* p1, const scoped_ptr& p2) { // Doing e.g. make_scoped_ptr(new FooBarBaz(arg)) is a shorter notation // for scoped_ptr >(new FooBarBaz(arg)) template -scoped_ptr make_scoped_ptr(T* ptr) { - return scoped_ptr(ptr); +webrtc::scoped_ptr rtc_make_scoped_ptr(T* ptr) { + return webrtc::scoped_ptr(ptr); } -} // namespace webrtc - #endif // WEBRTC_SYSTEM_WRAPPERS_INTERFACE_SCOPED_PTR_H_