]> sigrok.org Git - pulseview.git/commitdiff
Simplify signal clearing in Session::start_capture
authorSoeren Apel <redacted>
Wed, 29 Jul 2015 10:04:29 +0000 (12:04 +0200)
committerSoeren Apel <redacted>
Wed, 29 Jul 2015 10:04:29 +0000 (12:04 +0200)
pv/session.cpp

index bbfb7d2437b1c3380d955e8ef3ce3301797a2882..2bd3a054038f846d2263a26caf3ee124422f9293 100644 (file)
@@ -180,8 +180,7 @@ void Session::start_capture(function<void (const QString)> error_handler)
        }
 
        // Clear signal data
-       const set< shared_ptr<data::SignalData> > signal_data = get_data();
-       for (const shared_ptr<data::SignalData> d : signal_data)
+       for (const shared_ptr<data::SignalData> d : get_data())
                d->clear();
 
        // Begin the session