| 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;
|
| }
|
|
|
|
|