Index: Source/modules/indexeddb/WorkerGlobalScopeIndexedDatabase.cpp |
diff --git a/Source/modules/indexeddb/WorkerGlobalScopeIndexedDatabase.cpp b/Source/modules/indexeddb/WorkerGlobalScopeIndexedDatabase.cpp |
index 04fcbae3082725084b6fe780aaba1fa6a19f4794..51ae8f8779f19f92192123c71768e9982d718324 100644 |
--- a/Source/modules/indexeddb/WorkerGlobalScopeIndexedDatabase.cpp |
+++ b/Source/modules/indexeddb/WorkerGlobalScopeIndexedDatabase.cpp |
@@ -48,19 +48,19 @@ const char* WorkerGlobalScopeIndexedDatabase::supplementName() |
return "WorkerGlobalScopeIndexedDatabase"; |
} |
-WorkerGlobalScopeIndexedDatabase* WorkerGlobalScopeIndexedDatabase::from(WorkerSupplementable* context) |
+WorkerGlobalScopeIndexedDatabase& WorkerGlobalScopeIndexedDatabase::from(WorkerSupplementable& context) |
{ |
WorkerGlobalScopeIndexedDatabase* supplement = static_cast<WorkerGlobalScopeIndexedDatabase*>(WorkerSupplement::from(context, supplementName())); |
if (!supplement) { |
supplement = new WorkerGlobalScopeIndexedDatabase(); |
provideTo(context, supplementName(), adoptPtr(supplement)); |
} |
- return supplement; |
+ return *supplement; |
} |
-IDBFactory* WorkerGlobalScopeIndexedDatabase::indexedDB(WorkerSupplementable* context) |
+IDBFactory* WorkerGlobalScopeIndexedDatabase::indexedDB(WorkerSupplementable& context) |
{ |
- return from(context)->indexedDB(); |
+ return from(context).indexedDB(); |
} |
IDBFactory* WorkerGlobalScopeIndexedDatabase::indexedDB() |