Mercurial > hg > svgui
diff layer/Layer.cpp @ 1414:fa986b91d77f
Merge from branch fix-static-analysis
author | Chris Cannam |
---|---|
date | Wed, 09 Jan 2019 15:24:51 +0000 |
parents | c8a6fd3f9dff |
children | 62e908518c71 ec6605563544 |
line wrap: on
line diff
--- a/layer/Layer.cpp Wed Jan 09 14:41:52 2019 +0000 +++ b/layer/Layer.cpp Wed Jan 09 15:24:51 2019 +0000 @@ -111,7 +111,7 @@ if (model) { return PlayParameterRepository::getInstance()->getPlayParameters(model); } - return 0; + return nullptr; } void @@ -169,7 +169,7 @@ Layer::alignToReference(LayerGeometryProvider *v, sv_frame_t frame) const { const Model *m = getModel(); - SVDEBUG << "Layer::alignToReference(" << frame << "): model = " << m << ", alignment reference = " << (m ? m->getAlignmentReference() : 0) << endl; + SVDEBUG << "Layer::alignToReference(" << frame << "): model = " << m << ", alignment reference = " << (m ? m->getAlignmentReference() : nullptr) << endl; if (m && m->getAlignmentReference()) { return m->alignToReference(frame); } else { @@ -181,7 +181,7 @@ Layer::alignFromReference(LayerGeometryProvider *v, sv_frame_t frame) const { const Model *m = getModel(); - SVDEBUG << "Layer::alignFromReference(" << frame << "): model = " << m << ", alignment reference = " << (m ? m->getAlignmentReference() : 0) << endl; + SVDEBUG << "Layer::alignFromReference(" << frame << "): model = " << m << ", alignment reference = " << (m ? m->getAlignmentReference() : nullptr) << endl; if (m && m->getAlignmentReference()) { return m->alignFromReference(frame); } else {