X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fpopups%2Fchannels.cpp;h=9c200b9db31eb5d1c6a3e35cafcc85b1ec2cdbbf;hb=87a97d8aa169936ec2dcd229df88b8c5b4a1411c;hp=7489b93f81b832d0f8bb64586155c75b7502556c;hpb=bf0edd2b0cbb5f4bd5d69b0f00bcea7d037e2287;p=pulseview.git diff --git a/pv/popups/channels.cpp b/pv/popups/channels.cpp index 7489b93..9c200b9 100644 --- a/pv/popups/channels.cpp +++ b/pv/popups/channels.cpp @@ -14,8 +14,7 @@ * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * along with this program; if not, see . */ #include @@ -52,6 +51,7 @@ using std::map; using std::mutex; using std::set; using std::shared_ptr; +using std::make_shared; using std::unordered_set; using std::vector; @@ -82,8 +82,8 @@ Channels::Channels(Session &session, QWidget *parent) : map, shared_ptr > signal_map; unordered_set< shared_ptr > sigs; - for (const shared_ptr s : session_.signals()) - sigs.insert(s->channel()); + for (const shared_ptr b : session_.signalbases()) + sigs.insert(b); for (const shared_ptr &sig : sigs) signal_map[sig->channel()] = sig; @@ -166,7 +166,7 @@ void Channels::populate_group(shared_ptr group, // popup. shared_ptr binding; if (group) - binding = shared_ptr(new Device(group)); + binding = make_shared(group); // Create a title if the group is going to have any content if ((!sigs.empty() || (binding && !binding->properties().empty())) &&