From efb47469d364b08895566a60222567806bd23153 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Sat, 18 Apr 2015 20:08:25 +0200 Subject: [PATCH] better like this (nw) --- src/emu/sound.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/emu/sound.c b/src/emu/sound.c index cf022cef8a8..02211325158 100644 --- a/src/emu/sound.c +++ b/src/emu/sound.c @@ -618,7 +618,7 @@ void sound_stream::generate_samples(int samples) m_input_array[inputnum] = generate_resampled_data(input, samples); } - if (m_input.size()>0) + if (!m_input.empty()) { inputs = &m_input_array[0]; } @@ -630,7 +630,7 @@ void sound_stream::generate_samples(int samples) m_output_array[outputnum] = &output.m_buffer[m_output_sampindex - m_output_base_sampindex]; } - if (m_output.size()>0) + if (!m_output.empty()) { outputs = &m_output_array[0]; }