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

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

Issue 1981823002: Remove OwnPtr::release() calls in platform/ (part 1). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/HRTFDatabase.cpp
diff --git a/third_party/WebKit/Source/platform/audio/HRTFDatabase.cpp b/third_party/WebKit/Source/platform/audio/HRTFDatabase.cpp
index a45f1941bcedfcf544f3c9a45d543e676a68d51f..7b88489525d37c884d887999f65331d7ebbe9c3c 100644
--- a/third_party/WebKit/Source/platform/audio/HRTFDatabase.cpp
+++ b/third_party/WebKit/Source/platform/audio/HRTFDatabase.cpp
@@ -41,8 +41,7 @@ const unsigned HRTFDatabase::NumberOfTotalElevations = NumberOfRawElevations * I
PassOwnPtr<HRTFDatabase> HRTFDatabase::create(float sampleRate)
{
- OwnPtr<HRTFDatabase> hrtfDatabase = adoptPtr(new HRTFDatabase(sampleRate));
- return hrtfDatabase.release();
+ return adoptPtr(new HRTFDatabase(sampleRate));
}
HRTFDatabase::HRTFDatabase(float sampleRate)
@@ -56,7 +55,7 @@ HRTFDatabase::HRTFDatabase(float sampleRate)
if (!hrtfElevation.get())
return;
- m_elevations[elevationIndex] = hrtfElevation.release();
+ m_elevations[elevationIndex] = std::move(hrtfElevation);
elevationIndex += InterpolationFactor;
}
« no previous file with comments | « third_party/WebKit/Source/platform/audio/FFTFrame.cpp ('k') | third_party/WebKit/Source/platform/audio/HRTFElevation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698