/* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththis
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/* Smart pointer which leaks its owning refcounted object by default. */
~MaybeLeakRefPtr() { if (!mAutoRelease) { // If mAutoRelease is not set, take the value out of this and leak it // before the base class destructor would call Release().
RefPtr<T>::forget().leak();
}
}
private: bool mAutoRelease = false;
};
} // namespace mozilla
#endif// MaybeLeakRefPtr_h
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.18 Sekunden
(vorverarbeitet am 2026-08-25)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.