From: Joel Holdsworth Date: Thu, 13 Nov 2014 12:31:28 +0000 (+0000) Subject: SigSession: Replaced do { } while(0) with { } X-Git-Tag: pulseview-0.3.0~514 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=fbd3e234bed5daf5dc4a061d63b26af9a73bc395;p=pulseview.git SigSession: Replaced do { } while(0) with { } --- diff --git a/pv/sigsession.cpp b/pv/sigsession.cpp index 1d424c00..eb4cd513 100644 --- a/pv/sigsession.cpp +++ b/pv/sigsession.cpp @@ -348,7 +348,7 @@ void SigSession::update_signals(shared_ptr device) } // Make the Signals list - do { + { lock_guard lock(_signals_mutex); _signals.clear(); @@ -380,7 +380,7 @@ void SigSession::update_signals(shared_ptr device) _signals.push_back(signal); } - } while(0); + } signals_changed(); }