X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fprop%2Fint.cpp;h=d791bd96b05d0846b40d52dc476fdddec135420d;hp=e750e9fa9d8ec15757801c2809de31bbba196ef6;hb=0402d7a3e425c56321234e4bb546d9b698c6d237;hpb=2ad82c2e40b6865481733913a2c32735602f63c4 diff --git a/pv/prop/int.cpp b/pv/prop/int.cpp index e750e9fa..d791bd96 100644 --- a/pv/prop/int.cpp +++ b/pv/prop/int.cpp @@ -14,12 +14,11 @@ * 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 -#include +#include +#include #include @@ -45,10 +44,6 @@ Int::Int(QString name, { } -Int::~Int() -{ -} - QWidget* Int::get_widget(QWidget *parent, bool auto_commit) { int64_t int_val = 0, range_min = 0; @@ -95,7 +90,7 @@ QWidget* Int::get_widget(QWidget *parent, bool auto_commit) range_min = 0, range_max = UINT64_MAX; } else { // Unexpected value type. - assert(0); + assert(false); } // @todo Sigrok supports 64-bit quantities, but Qt does not have a @@ -148,7 +143,7 @@ void Int::commit() else { // Unexpected value type. - assert(0); + assert(false); } assert(new_value);