aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/corelib/buildgraph
diff options
context:
space:
mode:
authorDenis Shienkov <denis.shienkov@gmail.com>2021-11-27 14:53:07 +0300
committerDenis Shienkov <denis.shienkov@gmail.com>2021-12-01 15:41:45 +0000
commit712964ef2485a2fc66a791209cb8ab5e3f4ca0d0 (patch)
tree9ebdeec2cae4770f8317b7e5d5245a79c3a2f655 /src/lib/corelib/buildgraph
parent276ddf9f87ee513440bbb72473b48b69eb0319a5 (diff)
Add missing std:: namespace for all functions from <cstdio> library
Change-Id: Ia5c14b86e5e0952dbebf103c5355f49e41158cba Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/lib/corelib/buildgraph')
-rw-r--r--src/lib/corelib/buildgraph/rulegraph.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/corelib/buildgraph/rulegraph.cpp b/src/lib/corelib/buildgraph/rulegraph.cpp
index 23f22b7f2..3f9a4fcb5 100644
--- a/src/lib/corelib/buildgraph/rulegraph.cpp
+++ b/src/lib/corelib/buildgraph/rulegraph.cpp
@@ -96,7 +96,7 @@ void RuleGraph::accept(RuleGraphVisitor *visitor) const
void RuleGraph::dump() const
{
QByteArray indent;
- printf("---rule graph dump:\n");
+ std::printf("---rule graph dump:\n");
Set<int> rootRules;
for (const auto &rule : qAsConst(m_rules))
if (m_parents[rule->ruleGraphId].empty())
@@ -108,9 +108,9 @@ void RuleGraph::dump() const
void RuleGraph::dump_impl(QByteArray &indent, int rootIndex) const
{
const RuleConstPtr r = m_rules[rootIndex];
- printf("%s", indent.constData());
- printf("%s", qPrintable(r->toString()));
- printf("\n");
+ std::printf("%s", indent.constData());
+ std::printf("%s", qPrintable(r->toString()));
+ std::printf("\n");
indent.append(" ");
for (int childIndex : qAsConst(m_children[rootIndex]))