Commit 9bccdb88 authored by Montel Laurent's avatar Montel Laurent Committed by Laurent Montel

Convert some 0 to nullptr

Change-Id: Ib3ca8e2cc0d63fd35582c73b3cf7c915fb64ddfb
Reviewed-by: Eike Ziller's avatarEike Ziller <eike.ziller@qt.io>
parent 4d402664
......@@ -326,8 +326,8 @@ private:
DiagramController::DiagramController(QObject *parent)
: QObject(parent),
m_modelController(0),
m_undoController(0)
m_modelController(nullptr),
m_undoController(nullptr)
{
}
......
......@@ -54,7 +54,7 @@ namespace qmt {
DiagramSceneModel::CreationVisitor::CreationVisitor(DiagramSceneModel *diagramSceneModel)
: m_diagramSceneModel(diagramSceneModel),
m_graphicsItem(0)
m_graphicsItem(nullptr)
{
}
......
......@@ -41,7 +41,7 @@ namespace qmt {
LatchController::LatchController(QObject *parent)
: QObject(parent),
m_diagramSceneModel(0),
m_diagramSceneModel(nullptr),
m_horizontalAlignLine(new AlignLineItem(AlignLineItem::Horizontal, 0)),
m_verticalAlignLine(new AlignLineItem(AlignLineItem::Vertical, 0)),
m_foundHorizontalLatch(false),
......
......@@ -248,9 +248,9 @@ ArrowItem::ArrowItem(const ArrowItem &rhs, QGraphicsItem *parent)
m_arrowSize(rhs.m_arrowSize),
m_diamondSize(rhs.m_diamondSize),
m_startHead(rhs.m_startHead),
m_startHeadItem(0),
m_startHeadItem(nullptr),
m_endHead(rhs.m_endHead),
m_endHeadItem(0)
m_endHeadItem(nullptr)
{
}
......
......@@ -88,13 +88,13 @@ private:
void updateGeometry();
Shaft m_shaft = ShaftSolid;
GraphicsShaftItem *m_shaftItem = 0;
GraphicsShaftItem *m_shaftItem = nullptr;
double m_arrowSize = 10.0;
double m_diamondSize = 15.0;
Head m_startHead = HeadNone;
GraphicsHeadItem *m_startHeadItem = 0;
GraphicsHeadItem *m_startHeadItem = nullptr;
Head m_endHead = HeadNone;
GraphicsHeadItem *m_endHeadItem = 0;
GraphicsHeadItem *m_endHeadItem = nullptr;
QList<QPointF> m_points;
};
......
......@@ -39,7 +39,7 @@ namespace qmt {
SceneInspector::SceneInspector(QObject *parent)
: QObject(parent),
m_diagramsManager(0)
m_diagramsManager(nullptr)
{
}
......
......@@ -38,7 +38,7 @@ namespace qmt {
DiagramsView::DiagramsView(QWidget *parent)
: QTabWidget(parent),
m_diagramsManager(0)
m_diagramsManager(nullptr)
{
setTabsClosable(true);
setMovable(true);
......
......@@ -38,7 +38,7 @@ namespace qmt {
StackedDiagramsView::StackedDiagramsView(QWidget *parent)
: QStackedWidget(parent),
m_diagramsManager(0)
m_diagramsManager(nullptr)
{
connect(this, &QStackedWidget::currentChanged, this, &StackedDiagramsView::onCurrentChanged);
}
......
......@@ -39,8 +39,8 @@ namespace qmt {
TreeModelManager::TreeModelManager(QObject *parent) :
QObject(parent),
m_treeModel(0),
m_modelTreeView(0)
m_treeModel(nullptr),
m_modelTreeView(nullptr)
{
}
......
......@@ -49,8 +49,8 @@ namespace qmt {
ModelTreeView::ModelTreeView(QWidget *parent)
: QTreeView(parent),
m_sortedTreeModel(0),
m_elementTasks(0)
m_sortedTreeModel(nullptr),
m_elementTasks(nullptr)
{
setHeaderHidden(true);
setSortingEnabled(false);
......
......@@ -32,7 +32,7 @@ namespace qmt {
FindDiagramVisitor::FindDiagramVisitor()
: MVoidConstVisitor(),
m_diagram(0)
m_diagram(nullptr)
{
}
......
......@@ -31,7 +31,7 @@ namespace qmt {
FindRootDiagramVisitor::FindRootDiagramVisitor()
: MVoidVisitor(),
m_diagram(0)
m_diagram(nullptr)
{
}
......
......@@ -67,7 +67,7 @@ bool WheelFilter::eventFilter(QObject *obj, QEvent *event)
ContextPaneWidgetImage::ContextPaneWidgetImage(QWidget *parent, bool borderImage) :
QWidget(parent),
ui(0), uiBorderImage(0), previewWasVisible(false)
ui(nullptr), uiBorderImage(nullptr), previewWasVisible(false)
{
LabelFilter *labelFilter = new LabelFilter(this);
......
......@@ -30,12 +30,12 @@
namespace Utils {
ChangeSet::ChangeSet()
: m_string(0), m_cursor(0), m_error(false)
: m_string(nullptr), m_cursor(nullptr), m_error(false)
{
}
ChangeSet::ChangeSet(const QList<EditOp> &operations)
: m_string(0), m_cursor(0), m_operationList(operations), m_error(false)
: m_string(nullptr), m_cursor(nullptr), m_operationList(operations), m_error(false)
{
}
......
......@@ -94,8 +94,8 @@ DetailsWidgetPrivate::DetailsWidgetPrivate(QWidget *parent) :
m_summaryLabel(new QLabel(parent)),
m_summaryCheckBox(new QCheckBox(parent)),
m_additionalSummaryLabel(new QLabel(parent)),
m_toolWidget(0),
m_widget(0),
m_toolWidget(nullptr),
m_widget(nullptr),
m_state(DetailsWidget::Collapsed),
m_hovered(false),
m_useCheckBox(false)
......
......@@ -76,14 +76,14 @@ MimeDatabasePrivate *MimeDatabasePrivate::instance()
}
MimeDatabasePrivate::MimeDatabasePrivate()
: m_provider(0), m_defaultMimeType(QLatin1String("application/octet-stream"))
: m_provider(nullptr), m_defaultMimeType(QLatin1String("application/octet-stream"))
{
}
MimeDatabasePrivate::~MimeDatabasePrivate()
{
delete m_provider;
m_provider = 0;
m_provider = nullptr;
}
MimeProviderBase *MimeDatabasePrivate::provider()
......
......@@ -191,7 +191,7 @@ QWidget *NewDialog::m_currentDialog = nullptr;
NewDialog::NewDialog(QWidget *parent) :
QDialog(parent),
m_ui(new Ui::NewDialog),
m_okButton(0)
m_okButton(nullptr)
{
QTC_CHECK(m_currentDialog == nullptr);
......
......@@ -35,7 +35,7 @@ using namespace Core;
using namespace Core::Internal;
DirectoryFilter::DirectoryFilter(Id id)
: m_dialog(0)
: m_dialog(nullptr)
{
setId(id);
setIncludedByDefault(true);
......
......@@ -32,7 +32,7 @@ using namespace Core;
using namespace Core::Internal;
ProgressView::ProgressView(QWidget *parent)
: QWidget(parent), m_referenceWidget(0), m_hovered(false)
: QWidget(parent), m_referenceWidget(nullptr), m_hovered(false)
{
m_layout = new QVBoxLayout;
setLayout(m_layout);
......
......@@ -49,7 +49,7 @@ namespace Core {
namespace Internal {
SystemSettings::SystemSettings()
: m_page(0), m_dialog(0)
: m_page(nullptr), m_dialog(0)
{
setId(Constants::SETTINGS_ID_SYSTEM);
setDisplayName(tr("System"));
......
......@@ -69,7 +69,7 @@ public:
SourceAgentPrivate::SourceAgentPrivate()
: editor(0)
, locationMark(0)
, locationMark(nullptr)
, producer(QLatin1String("remote"))
{
}
......@@ -91,7 +91,7 @@ SourceAgent::SourceAgent(DebuggerEngine *engine)
SourceAgent::~SourceAgent()
{
delete d;
d = 0;
d = nullptr;
}
void SourceAgent::setSourceProducerName(const QString &name)
......
......@@ -47,7 +47,7 @@
using namespace ProjectExplorer;
ProcessParameters::ProcessParameters() :
m_macroExpander(0),
m_macroExpander(nullptr),
m_commandMissing(false)
{
}
......
......@@ -172,7 +172,7 @@ FontSettingsPagePrivate::FontSettingsPagePrivate(const FormatDescriptions &fd,
m_displayName(displayName),
m_settingsGroup(Utils::settingsKey(category)),
m_descriptions(fd),
m_ui(0),
m_ui(nullptr),
m_schemeListModel(new SchemeListModel),
m_refreshingSchemeList(false)
{
......
......@@ -59,7 +59,7 @@ HighlighterSettingsPagePrivate(Core::Id id) :
m_id(id),
m_displayName(tr("Generic Highlighter")),
m_settingsPrefix(QLatin1String("Text")),
m_page(0)
m_page(nullptr)
{}
void HighlighterSettingsPage::HighlighterSettingsPagePrivate::ensureInitialized()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment