From 2567f49288575d837fe7273557fa099a814e274f Mon Sep 17 00:00:00 2001 From: Daniel Nicoletti Date: Wed, 3 Jan 2024 19:13:02 -0300 Subject: [PATCH] Use nullptr --- .../graphvizlayout/graphvizlayouterbackend.cpp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/core/layout/graphvizlayout/graphvizlayouterbackend.cpp b/src/core/layout/graphvizlayout/graphvizlayouterbackend.cpp index 9dcabae0..b756597e 100644 --- a/src/core/layout/graphvizlayout/graphvizlayouterbackend.cpp +++ b/src/core/layout/graphvizlayout/graphvizlayouterbackend.cpp @@ -144,12 +144,12 @@ struct GraphvizLayouterBackend::Private inline Agnode_t *agnodeForState(State *state); /// Root Graphviz graph used for layouting - Agraph_t *m_graph; + Agraph_t *m_graph = nullptr; /// Graphviz context - GVC_t *m_context; + GVC_t *m_context = nullptr; - LayoutMode m_layoutMode; - const LayoutProperties *m_properties; + LayoutMode m_layoutMode = RecursiveMode; + const LayoutProperties *m_properties = nullptr; /// Mapping from state machine items to Graphviz layout items QPointer m_root; @@ -158,10 +158,6 @@ struct GraphvizLayouterBackend::Private }; GraphvizLayouterBackend::Private::Private() - : m_graph(nullptr) - , m_context(nullptr) - , m_layoutMode(RecursiveMode) - , m_properties(0) { // hide non-critical warnings, such as // Warning: node '0x15e1800', graph 'GraphvizLayouterBackend@0xa90330' size too small for label