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

Side by Side Diff: webrtc/base/transformadapter.cc

Issue 2718663005: Replace NULL with nullptr or null in webrtc/base/. (Closed)
Patch Set: Fixing Windows and formatting issues. Created 3 years, 9 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
« no previous file with comments | « webrtc/base/trace_event.h ('k') | webrtc/base/unittest_main.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2004 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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 if (error) 168 if (error)
169 *error = error_; 169 *error = error_;
170 return SR_ERROR; 170 return SR_ERROR;
171 } 171 }
172 172
173 void 173 void
174 TransformAdapter::Close() { 174 TransformAdapter::Close() {
175 if (!direction_read_ && (state_ == ST_PROCESSING)) { 175 if (!direction_read_ && (state_ == ST_PROCESSING)) {
176 state_ = ST_FLUSHING; 176 state_ = ST_FLUSHING;
177 do { 177 do {
178 Write(0, 0, NULL, NULL); 178 Write(0, 0, nullptr, nullptr);
179 } while (state_ == ST_FLUSHING); 179 } while (state_ == ST_FLUSHING);
180 } 180 }
181 state_ = ST_COMPLETE; 181 state_ = ST_COMPLETE;
182 StreamAdapterInterface::Close(); 182 StreamAdapterInterface::Close();
183 } 183 }
184 184
185 bool TransformAdapter::GetAvailable(size_t* size) const { 185 bool TransformAdapter::GetAvailable(size_t* size) const {
186 return false; 186 return false;
187 } 187 }
188 188
189 bool TransformAdapter::ReserveSize(size_t size) { 189 bool TransformAdapter::ReserveSize(size_t size) {
190 return true; 190 return true;
191 } 191 }
192 192
193 bool TransformAdapter::Rewind() { 193 bool TransformAdapter::Rewind() {
194 return false; 194 return false;
195 } 195 }
196 196
197 } // namespace rtc 197 } // namespace rtc
OLDNEW
« no previous file with comments | « webrtc/base/trace_event.h ('k') | webrtc/base/unittest_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698