X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fpopups%2Fchannels.cpp;h=9c200b9db31eb5d1c6a3e35cafcc85b1ec2cdbbf;hb=067bb62415847791709f4c3cad8bb252a63f45f8;hp=23204e855306d436419d201bde7693b71b650e82;hpb=47e9e7bbc3a4e91a960f4cbb1db48c5aff6dcace;p=pulseview.git diff --git a/pv/popups/channels.cpp b/pv/popups/channels.cpp index 23204e8..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; @@ -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())) &&