Replace 0 and NULL with nullptr where apropriate.

- fixed using clang-tidy's modernize-use-nullptr check.
This commit is contained in:
Jim Evins
2017-03-21 23:48:13 -04:00
parent e09936233a
commit 4be4ea08f6
54 changed files with 124 additions and 124 deletions
+2 -2
View File
@@ -55,7 +55,7 @@ namespace glabels
/// Constructor
///
Preview::Preview( QWidget *parent )
: mModel(0), mRenderer(0), QGraphicsView(parent)
: mModel(nullptr), mRenderer(nullptr), QGraphicsView(parent)
{
mScene = new QGraphicsScene();
setScene( mScene );
@@ -89,7 +89,7 @@ namespace glabels
clearScene();
if ( mModel != NULL )
if ( mModel != nullptr )
{
// Set scene up with a 5% margin around paper
Distance x = -0.05 * mModel->tmplate()->pageWidth();