Skip to content

Commit 41a37d2

Browse files
committed
Use nullptr over 0 in a few places
1 parent 8ac6025 commit 41a37d2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/audio_player_portaudio.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ wxArrayString PortAudioPlayer::GetOutputDevices() {
263263
list.push_back("Default");
264264

265265
try {
266-
PortAudioPlayer player(0);
266+
PortAudioPlayer player(nullptr);
267267

268268
for (auto it = player.devices.begin(); it != player.devices.end(); ++it)
269269
list.push_back(to_wx(it->first));

src/auto4_lua_assfile.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ namespace Automation4 {
298298
sty->UpdateData();
299299
}
300300
else if (lclass == "dialogue") {
301-
assert(ass != 0); // since we need AssFile::AddExtradata
301+
assert(ass != nullptr); // since we need AssFile::AddExtradata
302302
auto dia = new AssDialogue;
303303
result.reset(dia);
304304

0 commit comments

Comments
 (0)