mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 944176: In mozilla::Scoped, don't gratuitously repeat template arguments within the class template itself. r=waldo
This commit is contained in:
parent
1b0c0d2f10
commit
f8959b7f30
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user