From: Soeren Apel Date: Wed, 29 Jul 2015 10:04:29 +0000 (+0200) Subject: Simplify signal clearing in Session::start_capture X-Git-Tag: pulseview-0.3.0~158 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=33994eb405ba3ab59625ea2fa38dcc00d8b66687;p=pulseview.git Simplify signal clearing in Session::start_capture --- diff --git a/pv/session.cpp b/pv/session.cpp index bbfb7d24..2bd3a054 100644 --- a/pv/session.cpp +++ b/pv/session.cpp @@ -180,8 +180,7 @@ void Session::start_capture(function error_handler) } // Clear signal data - const set< shared_ptr > signal_data = get_data(); - for (const shared_ptr d : signal_data) + for (const shared_ptr d : get_data()) d->clear(); // Begin the session