summaryrefslogtreecommitdiffstats
path: root/src/render/framegraph/qframegraphnode.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/framegraph/qframegraphnode.cpp')
-rw-r--r--src/render/framegraph/qframegraphnode.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/render/framegraph/qframegraphnode.cpp b/src/render/framegraph/qframegraphnode.cpp
index 5319abb5f..2d9946df9 100644
--- a/src/render/framegraph/qframegraphnode.cpp
+++ b/src/render/framegraph/qframegraphnode.cpp
@@ -11,7 +11,6 @@
#include <QList>
#include <QQueue>
-using namespace Qt3DCore;
QT_BEGIN_NAMESPACE
@@ -34,7 +33,7 @@ QString dumpNodeFilters(const Qt3DRender::QFrameGraphNode *n, const QList<Qt3DRe
QStringList kv;
for (auto filter: filters)
kv.push_back(QString(QLatin1String("%1: %2")).arg(filter->name(), filter->value().toString()));
- if (kv.size())
+ if (!kv.empty())
res += QString(QLatin1String(" <%1>")).arg(kv.join(QLatin1String(", ")));
return res;
@@ -120,7 +119,7 @@ void dumpFGPaths(const Qt3DRender::QFrameGraphNode *n, QStringList &result)
parents.prepend(dumpNode(fgNode));
fgNode = fgNode->parentFrameGraphNode();
}
- if (parents.size()) {
+ if (!parents.empty()) {
result << QString(QLatin1String("%1 [ %2 ]")).arg(QString::number(rv), parents.join(QLatin1String(", ")));
++rv;
}
@@ -154,7 +153,7 @@ void dumpFGFilterState(const Qt3DRender::QFrameGraphNode *n, QStringList &result
fgNode = fgNode->parentFrameGraphNode();
}
if (parents) {
- if (filters.size())
+ if (!filters.empty())
result << QString(QLatin1String("%1 [ %2 ]")).arg(QString::number(rv), filters.join(QLatin1String(", ")));
else
result << QString(QObject::tr("%1 [ No Filters ]")).arg(rv);
@@ -340,6 +339,8 @@ QFrameGraphNode *QFrameGraphNode::parentFrameGraphNode() const
*/
QList<QFrameGraphNode *> QFrameGraphNodePrivate::childFrameGraphNodes() const
{
+ using namespace Qt3DCore;
+
Q_Q(const QFrameGraphNode);
QList<QFrameGraphNode *> result;
QQueue<QNode *> queue;