Bug 1682536 - Use references/NotNull with IDBCursor. r=dom-workers-and-storage-reviewers,janv

Differential Revision: https://phabricator.services.mozilla.com/D99785
This commit is contained in:
Simon Giesecke
2021-01-21 11:58:29 +00:00
parent a9271829cc
commit 6c6f47b599
3 changed files with 10 additions and 10 deletions

View File

@@ -73,7 +73,7 @@ class IDBTransaction final
nsTArray<RefPtr<IDBObjectStore>> mObjectStores;
nsTArray<RefPtr<IDBObjectStore>> mDeletedObjectStores;
RefPtr<StrongWorkerRef> mWorkerRef;
nsTArray<IDBCursor*> mCursors;
nsTArray<NotNull<IDBCursor*>> mCursors;
// Tagged with mMode. If mMode is Mode::VersionChange then mBackgroundActor
// will be a BackgroundVersionChangeTransactionChild. Otherwise it will be a
@@ -312,8 +312,8 @@ class IDBTransaction final
int64_t NextIndexId();
void InvalidateCursorCaches();
void RegisterCursor(IDBCursor* aCursor);
void UnregisterCursor(IDBCursor* aCursor);
void RegisterCursor(IDBCursor& aCursor);
void UnregisterCursor(IDBCursor& aCursor);
NS_DECL_ISUPPORTS_INHERITED
NS_DECL_NSIRUNNABLE