]> sigrok.org Git - pulseview.git/commitdiff
SigSession: Replaced do { } while(0) with { }
authorJoel Holdsworth <redacted>
Thu, 13 Nov 2014 12:31:28 +0000 (12:31 +0000)
committerUwe Hermann <redacted>
Thu, 13 Nov 2014 18:34:38 +0000 (19:34 +0100)
pv/sigsession.cpp

index 1d424c000bf3972a8c697534af02522a05d99591..eb4cd5138bd23bca0f616305f066a972b18da5ac 100644 (file)
@@ -348,7 +348,7 @@ void SigSession::update_signals(shared_ptr<Device> device)
        }
 
        // Make the Signals list
-       do {
+       {
                lock_guard<mutex> lock(_signals_mutex);
 
                _signals.clear();
@@ -380,7 +380,7 @@ void SigSession::update_signals(shared_ptr<Device> device)
                        _signals.push_back(signal);
                }
 
-       } while(0);
+       }
 
        signals_changed();
 }