mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1157803 - Const-correct some methods. r=jww
This commit is contained in:
parent
56a64ac7ff
commit
4eb53fa0b1
@ -209,8 +209,8 @@ public:
|
||||
Canonical<T>* operator&() { return mCanonical; }
|
||||
|
||||
// Access to the T.
|
||||
const T& Ref() { return *mCanonical; }
|
||||
operator const T&() { return Ref(); }
|
||||
const T& Ref() const { return *mCanonical; }
|
||||
operator const T&() const { return Ref(); }
|
||||
Holder& operator=(const T& aNewValue) { *mCanonical = aNewValue; return *this; }
|
||||
|
||||
private:
|
||||
@ -372,8 +372,8 @@ public:
|
||||
Mirror<T>* operator&() { return mMirror; }
|
||||
|
||||
// Access to the T.
|
||||
const T& Ref() { return *mMirror; }
|
||||
operator const T&() { return Ref(); }
|
||||
const T& Ref() const { return *mMirror; }
|
||||
operator const T&() const { return Ref(); }
|
||||
|
||||
private:
|
||||
nsRefPtr<Mirror<T>> mMirror;
|
||||
|
Loading…
Reference in New Issue
Block a user