summaryrefslogtreecommitdiff
path: root/tests/auto/qsvggenerator/tst_qsvggenerator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qsvggenerator/tst_qsvggenerator.cpp')
-rw-r--r--tests/auto/qsvggenerator/tst_qsvggenerator.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/tests/auto/qsvggenerator/tst_qsvggenerator.cpp b/tests/auto/qsvggenerator/tst_qsvggenerator.cpp
index db7e3e5..4795b55 100644
--- a/tests/auto/qsvggenerator/tst_qsvggenerator.cpp
+++ b/tests/auto/qsvggenerator/tst_qsvggenerator.cpp
@@ -99,10 +99,14 @@ static void compareWithoutFontInfo(const QByteArray &source, const QByteArray &r
QDomDocument referenceDoc;
referenceDoc.setContent(reference);
- QList<QString> fontAttributes;
- fontAttributes << "font-family" << "font-size" << "font-weight" << "font-style";
-
- foreach (QString attribute, fontAttributes) {
+ const QString fontAttributes[] = {
+ "font-family",
+ "font-size",
+ "font-weight",
+ "font-style",
+ };
+
+ for (const QString &attribute : fontAttributes) {
removeAttribute(sourceDoc, attribute);
removeAttribute(referenceDoc, attribute);
}