Skip to content

Commit

Permalink
TRUE → true, for graphviz v10
Browse files Browse the repository at this point in the history
  • Loading branch information
nim65s committed Mar 21, 2024
1 parent 11e26e7 commit b3dea28
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions QGVCore/QGVScene.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ void QGVScene::setEdgeAttribute(const QString &name, const QString &value) {
}

QGVNode *QGVScene::addNode(const QString &label) {
Agnode_t *node = agnode(_graph->graph(), NULL, TRUE);
Agnode_t *node = agnode(_graph->graph(), NULL, true);
if (node == NULL) {
qWarning() << "Invalid node :" << label;
return 0;
Expand All @@ -78,7 +78,7 @@ QGVNode *QGVScene::addNode(const QString &label) {
QGVEdge *QGVScene::addEdge(QGVNode *source, QGVNode *target,
const QString &label) {
Agedge_t *edge = agedge(_graph->graph(), source->_node->node(),
target->_node->node(), NULL, TRUE);
target->_node->node(), NULL, true);
if (edge == NULL) {
qWarning() << "Invalid egde :" << label;
return 0;
Expand All @@ -95,9 +95,9 @@ QGVSubGraph *QGVScene::addSubGraph(const QString &name, bool cluster) {
Agraph_t *sgraph;
if (cluster)
sgraph =
agsubg(_graph->graph(), ("cluster_" + name).toLocal8Bit().data(), TRUE);
agsubg(_graph->graph(), ("cluster_" + name).toLocal8Bit().data(), true);
else
sgraph = agsubg(_graph->graph(), name.toLocal8Bit().data(), TRUE);
sgraph = agsubg(_graph->graph(), name.toLocal8Bit().data(), true);

if (sgraph == NULL) {
qWarning() << "Invalid subGraph :" << name;
Expand Down
8 changes: 4 additions & 4 deletions QGVCore/QGVSubGraph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ QString QGVSubGraph::name() const {
}

QGVNode *QGVSubGraph::addNode(const QString &label) {
Agnode_t *node = agnode(_sgraph->graph(), NULL, TRUE);
Agnode_t *node = agnode(_sgraph->graph(), NULL, true);
if (node == NULL) {
qWarning() << "Invalid sub node :" << label;
return 0;
}
agsubnode(_sgraph->graph(), node, TRUE);
agsubnode(_sgraph->graph(), node, true);

QGVNode *item = new QGVNode(new QGVNodePrivate(node), _scene);
item->setLabel(label);
Expand All @@ -60,9 +60,9 @@ QGVSubGraph *QGVSubGraph::addSubGraph(const QString &name, bool cluster) {
Agraph_t *sgraph;
if (cluster)
sgraph = agsubg(_sgraph->graph(), ("cluster_" + name).toLocal8Bit().data(),
TRUE);
true);
else
sgraph = agsubg(_sgraph->graph(), name.toLocal8Bit().data(), TRUE);
sgraph = agsubg(_sgraph->graph(), name.toLocal8Bit().data(), true);

if (sgraph == NULL) {
qWarning() << "Invalid subGraph :" << name;
Expand Down

0 comments on commit b3dea28

Please sign in to comment.