Mercurial > hg > svgui
diff layer/RegionLayer.cpp @ 1414:fa986b91d77f
Merge from branch fix-static-analysis
author | Chris Cannam |
---|---|
date | Wed, 09 Jan 2019 15:24:51 +0000 |
parents | d057dcc827e7 |
children | 2487521e857b |
line wrap: on
line diff
--- a/layer/RegionLayer.cpp Wed Jan 09 14:41:52 2019 +0000 +++ b/layer/RegionLayer.cpp Wed Jan 09 15:24:51 2019 +0000 @@ -46,7 +46,7 @@ RegionLayer::RegionLayer() : SingleColourLayer(), - m_model(0), + m_model(nullptr), m_editing(false), m_dragPointX(0), m_dragPointY(0), @@ -54,7 +54,7 @@ m_dragStartY(0), m_originalPoint(0, 0.0, 0, tr("New Region")), m_editingPoint(0, 0.0, 0, tr("New Region")), - m_editingCommand(0), + m_editingCommand(nullptr), m_verticalScale(EqualSpaced), m_colourMap(0), m_colourInverted(false), @@ -1202,7 +1202,7 @@ { if (!m_model || !m_editing) return; finish(m_editingCommand); - m_editingCommand = 0; + m_editingCommand = nullptr; m_editing = false; recalcSpacing(); @@ -1217,7 +1217,7 @@ if (m_editingCommand) { finish(m_editingCommand); - m_editingCommand = 0; + m_editingCommand = nullptr; } m_editing = true; @@ -1246,7 +1246,7 @@ m_editingCommand->deletePoint(m_editingPoint); finish(m_editingCommand); - m_editingCommand = 0; + m_editingCommand = nullptr; m_editing = false; recalcSpacing(); } @@ -1267,7 +1267,7 @@ if (m_editingCommand) { finish(m_editingCommand); - m_editingCommand = 0; + m_editingCommand = nullptr; } m_editing = true; @@ -1334,7 +1334,7 @@ finish(m_editingCommand); } - m_editingCommand = 0; + m_editingCommand = nullptr; m_editing = false; recalcSpacing(); }