Bug 944176: In mozilla::Scoped, don't gratuitously repeat template arguments within the class template itself. r=waldo

This commit is contained in:
Jim Blandy 2014-03-27 09:52:43 -07:00
parent 1b0c0d2f10
commit f8959b7f30

View File

@ -137,18 +137,18 @@ class Scoped
*
* @return this
*/
Scoped<Traits>& operator=(const Resource& other) {
Scoped& operator=(const Resource& other) {
return reset(other);
}
Scoped<Traits>& reset(const Resource& other) {
Scoped& reset(const Resource& other) {
Traits::release(value);
value = other;
return *this;
}
private:
explicit Scoped(const Scoped<Traits>& value) MOZ_DELETE;
Scoped<Traits>& operator=(const Scoped<Traits>& value) MOZ_DELETE;
explicit Scoped(const Scoped& value) MOZ_DELETE;
Scoped& operator=(const Scoped& value) MOZ_DELETE;
private:
Resource value;