X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fpopups%2Fchannels.cpp;h=d4ff6c9797cf6262a89b97df74b2dd65c7de05b3;hb=4c60462b00cc329e61daedd1c2e66724077bd412;hp=61a8aee071b382e9fc626a89ec08e2cda7975213;hpb=3cc9ad7b867853315473df611612c562d562ed8a;p=pulseview.git diff --git a/pv/popups/channels.cpp b/pv/popups/channels.cpp index 61a8aee..d4ff6c9 100644 --- a/pv/popups/channels.cpp +++ b/pv/popups/channels.cpp @@ -28,6 +28,7 @@ #include "channels.hpp" #include +#include #include #include @@ -42,6 +43,7 @@ using std::map; using std::mutex; using std::set; using std::shared_ptr; +using std::unordered_set; using std::vector; using sigrok::Channel; @@ -64,14 +66,14 @@ Channels::Channels(Session &session, QWidget *parent) : // Create the layout setLayout(&layout_); - shared_ptr device = session_.device(); + const shared_ptr device = session_.device()->device(); assert(device); // Collect a set of signals map, shared_ptr > signal_map; shared_lock lock(session_.signals_mutex()); - const vector< shared_ptr > &sigs(session_.signals()); + const unordered_set< shared_ptr > &sigs(session_.signals()); for (const shared_ptr &sig : sigs) signal_map[sig->channel()] = sig; @@ -108,7 +110,7 @@ Channels::Channels(Session &session, QWidget *parent) : } // Create a group - populate_group(NULL, global_sigs); + populate_group(nullptr, global_sigs); // Create the enable/disable all buttons connect(&enable_all_channels_, SIGNAL(clicked()),