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

Side by Side Diff: webrtc/modules/audio_processing/transient/wpd_tree.cc

Issue 2685783014: Replace NULL with nullptr in all C++ files. (Closed)
Patch Set: Fixing android. Created 3 years, 10 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 high_pass_coefficients, 59 high_pass_coefficients,
60 coefficients_length)); 60 coefficients_length));
61 } 61 }
62 } 62 }
63 } 63 }
64 64
65 WPDTree::~WPDTree() {} 65 WPDTree::~WPDTree() {}
66 66
67 WPDNode* WPDTree::NodeAt(int level, int index) { 67 WPDNode* WPDTree::NodeAt(int level, int index) {
68 if (level < 0 || level > levels_ || index < 0 || index >= 1 << level) { 68 if (level < 0 || level > levels_ || index < 0 || index >= 1 << level) {
69 return NULL; 69 return nullptr;
70 } 70 }
71 71
72 return nodes_[(1 << level) + index].get(); 72 return nodes_[(1 << level) + index].get();
73 } 73 }
74 74
75 int WPDTree::Update(const float* data, size_t data_length) { 75 int WPDTree::Update(const float* data, size_t data_length) {
76 if (!data || data_length != data_length_) { 76 if (!data || data_length != data_length_) {
77 return -1; 77 return -1;
78 } 78 }
79 79
(...skipping 29 matching lines...) Expand all
109 if (update_result != 0) { 109 if (update_result != 0) {
110 return -1; 110 return -1;
111 } 111 }
112 } 112 }
113 } 113 }
114 114
115 return 0; 115 return 0;
116 } 116 }
117 117
118 } // namespace webrtc 118 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698