Mercurial > hg > svgui
diff layer/TextLayer.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/TextLayer.cpp Mon Nov 26 13:52:57 2018 +0000 +++ b/layer/TextLayer.cpp Mon Nov 26 14:33:54 2018 +0000 @@ -34,11 +34,11 @@ TextLayer::TextLayer() : SingleColourLayer(), - m_model(0), + m_model(nullptr), m_editing(false), m_originalPoint(0, 0.0, tr("Empty Label")), m_editingPoint(0, 0.0, tr("Empty Label")), - m_editingCommand(0) + m_editingCommand(nullptr) { } @@ -475,7 +475,7 @@ } finish(m_editingCommand); - m_editingCommand = 0; + m_editingCommand = nullptr; m_editing = false; } @@ -488,7 +488,7 @@ if (m_editingCommand) { finish(m_editingCommand); - m_editingCommand = 0; + m_editingCommand = nullptr; } m_editing = true; @@ -516,7 +516,7 @@ m_editingCommand->deletePoint(m_editingPoint); finish(m_editingCommand); - m_editingCommand = 0; + m_editingCommand = nullptr; m_editing = false; } @@ -536,7 +536,7 @@ if (m_editingCommand) { finish(m_editingCommand); - m_editingCommand = 0; + m_editingCommand = nullptr; } m_editing = true; @@ -593,7 +593,7 @@ finish(m_editingCommand); } - m_editingCommand = 0; + m_editingCommand = nullptr; m_editing = false; }