mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 786503: mark nsSMILInstanceTime::mVisited as mutable. r=birtles
This commit is contained in:
parent
8b94e798f8
commit
f462257c18
@ -167,9 +167,8 @@ nsSMILInstanceTime::IsDependentOn(const nsSMILInstanceTime& aOther) const
|
||||
if (myBaseTime == &aOther)
|
||||
return true;
|
||||
|
||||
// mVisited is mutable
|
||||
mozilla::AutoRestore<bool> setVisited(const_cast<nsSMILInstanceTime*>(this)->mVisited);
|
||||
const_cast<nsSMILInstanceTime*>(this)->mVisited = true;
|
||||
mozilla::AutoRestore<bool> setVisited(mVisited);
|
||||
mVisited = true;
|
||||
return myBaseTime->IsDependentOn(aOther);
|
||||
}
|
||||
|
||||
|
@ -132,7 +132,7 @@ protected:
|
||||
kWasDynamicEndpoint = 8
|
||||
};
|
||||
uint8_t mFlags; // Combination of kDynamic, kMayUpdate, etc.
|
||||
bool mVisited; // (mutable) Cycle tracking
|
||||
mutable bool mVisited; // Cycle tracking
|
||||
|
||||
// Additional reference count to determine if this instance time is currently
|
||||
// used as a fixed endpoint in any intervals. Instance times that are used in
|
||||
|
Loading…
Reference in New Issue
Block a user