Bug 1168606 - Added comments on almost-const data members r=ttung,asuth

Differential Revision: https://phabricator.services.mozilla.com/D42645

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Simon Giesecke 2019-09-10 15:36:01 +00:00
Родитель f613dbb67c
Коммит a947f3b52f
3 изменённых файлов: 7 добавлений и 0 удалений

Просмотреть файл

@ -58,6 +58,9 @@ class IDBCursor final : public nsISupports, public nsWrapperCache {
indexedDB::BackgroundCursorChild* mBackgroundActor;
// TODO: mRequest, mSourceObjectStore and mSourceIndex could be made const if
// Bug 1575173 is resolved. They are initialized in the constructor and never
// modified/cleared.
RefPtr<IDBRequest> mRequest;
RefPtr<IDBObjectStore> mSourceObjectStore;
RefPtr<IDBIndex> mSourceIndex;

Просмотреть файл

@ -35,6 +35,8 @@ class KeyPath;
} // namespace indexedDB
class IDBIndex final : public nsISupports, public nsWrapperCache {
// TODO: This could be made const if Bug 1575173 is resolved. It is
// initialized in the constructor and never modified/cleared.
RefPtr<IDBObjectStore> mObjectStore;
JS::Heap<JS::Value> mCachedKeyPath;

Просмотреть файл

@ -54,6 +54,8 @@ class IDBObjectStore final : public nsISupports, public nsWrapperCache {
static const JSClass sDummyPropJSClass;
// TODO: This could be made const if Bug 1575173 is resolved. It is
// initialized in the constructor and never modified/cleared.
RefPtr<IDBTransaction> mTransaction;
JS::Heap<JS::Value> mCachedKeyPath;