]> sigrok.org Git - pulseview.git/blobdiff - pv/widgets/sweeptimingwidget.cpp
Use bool literals for boolean values.
[pulseview.git] / pv / widgets / sweeptimingwidget.cpp
index ec404c36c96f4f251c9dcc9e5034720c907ff231..6e24d94839429ec961e19c99dbe65d1e9047930b 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 "sweeptimingwidget.hpp"
 
 #include <cstdlib>
-
 #include <vector>
-
-#include <assert.h>
+#include <cassert>
 
 #include <extdef.h>
 
@@ -157,7 +154,7 @@ uint64_t SweepTimingWidget::value() const
 
        default:
                // Unexpected value type
-               assert(0);
+               assert(false);
                return 0;
        }
 }