Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Unified Diff: Source/modules/indexeddb/IDBDatabase.h

Issue 23060037: IndexedDB: Return refs from a few const property accessors (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/modules/indexeddb/IDBIndex.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/indexeddb/IDBDatabase.h
diff --git a/Source/modules/indexeddb/IDBDatabase.h b/Source/modules/indexeddb/IDBDatabase.h
index 9f1e3840df9f0f3f8133894ff8befbbe25ed0322..4d962067168e22b3600f2cf2af179242e0c40654 100644
--- a/Source/modules/indexeddb/IDBDatabase.h
+++ b/Source/modules/indexeddb/IDBDatabase.h
@@ -59,7 +59,7 @@ public:
void transactionFinished(IDBTransaction*);
// Implement the IDL
- const String name() const { return m_metadata.name; }
+ const String& name() const { return m_metadata.name; }
PassRefPtr<IDBAny> version() const;
PassRefPtr<DOMStringList> objectStoreNames() const;
@@ -91,7 +91,7 @@ public:
bool isClosePending() const { return m_closePending; }
void forceClose();
- const IDBDatabaseMetadata metadata() const { return m_metadata; }
+ const IDBDatabaseMetadata& metadata() const { return m_metadata; }
void enqueueEvent(PassRefPtr<Event>);
using EventTarget::dispatchEvent;
« no previous file with comments | « no previous file | Source/modules/indexeddb/IDBIndex.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698