Skip to content

Commit 52f07cb

Browse files
committed
Refactoring: Remove mutable from DotNode's m_written member variable
1 parent d1dbb7c commit 52f07cb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/dotnode.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ void DotNode::write(TextStream &t,
632632
GraphOutputFormat format,
633633
bool topDown,
634634
bool toChildren,
635-
bool backArrows) const
635+
bool backArrows)
636636
{
637637
//printf("DotNode::write(%d) name=%s this=%p written=%d visible=%d\n",m_distance,qPrint(m_label),this,m_written,m_visible);
638638
if (m_written) return; // node already written to the output

src/dotnode.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ class DotNode
8888
int findParent( DotNode *n );
8989

9090
void write(TextStream &t,GraphType gt,GraphOutputFormat f,
91-
bool topDown,bool toChildren,bool backArrows) const;
91+
bool topDown,bool toChildren,bool backArrows);
9292
void writeXML(TextStream &t,bool isClassGraph) const;
9393
void writeDocbook(TextStream &t,bool isClassGraph) const;
9494
void writeDEF(TextStream &t) const;
@@ -134,7 +134,7 @@ class DotNode
134134
DotNodeRefVector m_children; //!< list of child nodes (outgoing arrows)
135135
EdgeInfoVector m_edgeInfo; //!< edge info for each child
136136
bool m_deleted = false; //!< used to mark a node as deleted
137-
mutable bool m_written = false; //!< used to mark a node as written
137+
bool m_written = false; //!< used to mark a node as written
138138
bool m_hasDoc = false; //!< used to mark a node as documented
139139
bool m_isRoot; //!< indicates if this is a root node
140140
const ClassDef * m_classDef; //!< class representing this node (can be 0)

0 commit comments

Comments
 (0)