X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fpopups%2Fchannels.cpp;h=4a5e396c2e08e685d81205caa642608d3be73a13;hp=23204e855306d436419d201bde7693b71b650e82;hb=c063290ac7189bdd15221450f598504f43286b43;hpb=47e9e7bbc3a4e91a960f4cbb1db48c5aff6dcace diff --git a/pv/popups/channels.cpp b/pv/popups/channels.cpp index 23204e85..4a5e396c 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 @@ -25,8 +24,6 @@ #define NOGDI #define NORESOURCE #endif -#include -#include #include #include @@ -45,13 +42,9 @@ using namespace Qt; -using boost::shared_lock; -using boost::shared_mutex; -using std::lock_guard; 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 +159,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())) && @@ -175,13 +168,11 @@ void Channels::populate_group(shared_ptr group, QString("

%1

").arg(group->name().c_str()))); // Create the channel group grid - QGridLayout *const channel_grid = - create_channel_group_grid(sigs); + QGridLayout *const channel_grid = create_channel_group_grid(sigs); layout_.addRow(channel_grid); // Create the channel group options - if (binding) - { + if (binding) { binding->add_properties_to_form(&layout_, true); group_bindings_.push_back(binding); }