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

Side by Side Diff: Source/platform/exported/WebAudioBus.cpp

Issue 169653006: [not for commit] (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: replace = 0 with = nullptr Created 6 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010, Google Inc. All rights reserved. 2 * Copyright (C) 2010, Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 #else 73 #else
74 ASSERT_NOT_REACHED(); 74 ASSERT_NOT_REACHED();
75 #endif 75 #endif
76 } 76 }
77 77
78 void WebAudioBus::reset() 78 void WebAudioBus::reset()
79 { 79 {
80 #if ENABLE(WEB_AUDIO) 80 #if ENABLE(WEB_AUDIO)
81 if (m_private) { 81 if (m_private) {
82 (static_cast<AudioBus*>(m_private))->deref(); 82 (static_cast<AudioBus*>(m_private))->deref();
83 m_private = 0; 83 m_private = nullptr;
84 } 84 }
85 #else 85 #else
86 ASSERT_NOT_REACHED(); 86 ASSERT_NOT_REACHED();
87 #endif 87 #endif
88 } 88 }
89 89
90 unsigned WebAudioBus::numberOfChannels() const 90 unsigned WebAudioBus::numberOfChannels() const
91 { 91 {
92 #if ENABLE(WEB_AUDIO) 92 #if ENABLE(WEB_AUDIO)
93 if (!m_private) 93 if (!m_private)
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 #else 133 #else
134 ASSERT_NOT_REACHED(); 134 ASSERT_NOT_REACHED();
135 return 0; 135 return 0;
136 #endif 136 #endif
137 } 137 }
138 138
139 PassRefPtr<AudioBus> WebAudioBus::release() 139 PassRefPtr<AudioBus> WebAudioBus::release()
140 { 140 {
141 #if ENABLE(WEB_AUDIO) 141 #if ENABLE(WEB_AUDIO)
142 RefPtr<AudioBus> audioBus(adoptRef(static_cast<AudioBus*>(m_private))); 142 RefPtr<AudioBus> audioBus(adoptRef(static_cast<AudioBus*>(m_private)));
143 m_private = 0; 143 m_private = nullptr;
144 return audioBus; 144 return audioBus;
145 #else 145 #else
146 ASSERT_NOT_REACHED(); 146 ASSERT_NOT_REACHED();
147 return 0; 147 return 0;
148 #endif 148 #endif
149 } 149 }
150 150
151 } // namespace blink 151 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698