Mercurial > hg > svgui
diff layer/LayerFactory.cpp @ 1408:c8a6fd3f9dff fix-static-analysis
Use nullptr throughout
author | Chris Cannam |
---|---|
date | Mon, 26 Nov 2018 14:33:54 +0000 |
parents | a34a2a25907c |
children | 62e908518c71 |
line wrap: on
line diff
--- a/layer/LayerFactory.cpp Mon Nov 26 13:52:57 2018 +0000 +++ b/layer/LayerFactory.cpp Mon Nov 26 14:33:54 2018 +0000 @@ -371,7 +371,7 @@ } else if (layerType == Image) { return new ImageModel(baseModel->getSampleRate(), 1, true); } else { - return 0; + return nullptr; } } @@ -407,7 +407,7 @@ Layer * LayerFactory::createLayer(LayerType type) { - Layer *layer = 0; + Layer *layer = nullptr; switch (type) {