Use bool literals for boolean values.
[pulseview.git] / pv / prop / int.cpp
index fd3bfe4708e6a0cb95832e81643421945de5a5eb..d791bd96b05d0846b40d52dc476fdddec135420d 100644 (file)
  * 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 <http://www.gnu.org/licenses/>.
  */
 
-#include <stdint.h>
-#include <assert.h>
+#include <cstdint>
+#include <cassert>
 
 #include <QSpinBox>
 
@@ -91,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
@@ -144,7 +143,7 @@ void Int::commit()
        else
        {
                // Unexpected value type.
-               assert(0);
+               assert(false);
        }
 
        assert(new_value);