diff options
Diffstat (limited to 'gr-qtgui/lib/edit_box_msg_impl.cc')
-rw-r--r-- | gr-qtgui/lib/edit_box_msg_impl.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gr-qtgui/lib/edit_box_msg_impl.cc b/gr-qtgui/lib/edit_box_msg_impl.cc index 0339276276..67fa5e9b39 100644 --- a/gr-qtgui/lib/edit_box_msg_impl.cc +++ b/gr-qtgui/lib/edit_box_msg_impl.cc @@ -106,7 +106,7 @@ edit_box_msg_impl::edit_box_msg_impl(data_type_t type, d_key->setFixedWidth(width); // Verify that a default key has been set or emit an error - if (key.size() == 0) { + if (key.empty()) { throw std::runtime_error( "When using static + pair mode, please set a default key."); } @@ -118,7 +118,7 @@ edit_box_msg_impl::edit_box_msg_impl(data_type_t type, } d_label = NULL; - if (label != "") { + if (!label.empty()) { d_label = new QLabel(QString(label.c_str())); d_vlayout->addWidget(d_label); } |