diff data/model/Model.cpp @ 1582:70e172e6cc59 fix-static-analysis

Use nullptr throughout
author Chris Cannam
date Mon, 26 Nov 2018 14:33:41 +0000
parents d3814e07b8aa
children 1d1a16968f03 f9b6e99e0520
line wrap: on
line diff
--- a/data/model/Model.cpp	Mon Nov 26 13:51:36 2018 +0000
+++ b/data/model/Model.cpp	Mon Nov 26 14:33:41 2018 +0000
@@ -94,7 +94,7 @@
 void
 Model::sourceModelAboutToBeDeleted()
 {
-    m_sourceModel = 0;
+    m_sourceModel = nullptr;
 }
 
 void
@@ -124,7 +124,7 @@
 {
     if (!m_alignment) {
         if (m_sourceModel) return m_sourceModel->getAlignmentReference();
-        return 0;
+        return nullptr;
     }
     return m_alignment->getReferenceModel();
 }