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

Unified Diff: third_party/WebKit/Source/platform/audio/HRTFDatabaseLoader.cpp

Issue 2957513002: Removed calls to RefPtr::Release in return statements with auto move. (Closed)
Patch Set: rebased Created 3 years, 6 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
Index: third_party/WebKit/Source/platform/audio/HRTFDatabaseLoader.cpp
diff --git a/third_party/WebKit/Source/platform/audio/HRTFDatabaseLoader.cpp b/third_party/WebKit/Source/platform/audio/HRTFDatabaseLoader.cpp
index c9b04375ca8b3e455f9dc38d3d84aaebbc158ab7..e3fb7c75ff5f520cc35e631441ab3041466acfdc 100644
--- a/third_party/WebKit/Source/platform/audio/HRTFDatabaseLoader.cpp
+++ b/third_party/WebKit/Source/platform/audio/HRTFDatabaseLoader.cpp
@@ -53,13 +53,13 @@ HRTFDatabaseLoader::CreateAndLoadAsynchronouslyIfNecessary(float sample_rate) {
RefPtr<HRTFDatabaseLoader> loader = GetLoaderMap().at(sample_rate);
if (loader) {
DCHECK_EQ(sample_rate, loader->DatabaseSampleRate());
- return loader.Release();
+ return loader;
}
loader = AdoptRef(new HRTFDatabaseLoader(sample_rate));
GetLoaderMap().insert(sample_rate, loader.Get());
loader->LoadAsynchronously();
- return loader.Release();
+ return loader;
}
HRTFDatabaseLoader::HRTFDatabaseLoader(float sample_rate)
« no previous file with comments | « third_party/WebKit/Source/platform/SharedBuffer.cpp ('k') | third_party/WebKit/Source/platform/bindings/DOMWrapperWorld.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698