summaryrefslogtreecommitdiffstats
path: root/src/testlib/qtestjunitstreamer_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/testlib/qtestjunitstreamer_p.h')
-rw-r--r--src/testlib/qtestjunitstreamer_p.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/testlib/qtestjunitstreamer_p.h b/src/testlib/qtestjunitstreamer_p.h
index 17c8a0383c..83b070d856 100644
--- a/src/testlib/qtestjunitstreamer_p.h
+++ b/src/testlib/qtestjunitstreamer_p.h
@@ -1,6 +1,6 @@
/****************************************************************************
**
-** Copyright (C) 2016 The Qt Company Ltd.
+** Copyright (C) 2021 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the QtTest module of the Qt Toolkit.
@@ -71,7 +71,6 @@ class QTestJUnitStreamer
void formatStart(const QTestElement *element, QTestCharBuffer *formatted) const;
void formatEnd(const QTestElement *element, QTestCharBuffer *formatted) const;
void formatAfterAttributes(const QTestElement *element, QTestCharBuffer *formatted) const;
- void formatAttributes(const QTestElement *element, const QTestElementAttribute *attribute, QTestCharBuffer *formatted) const;
void output(QTestElement *element) const;
void outputElements(const std::vector<QTestElement*> &) const;
void outputElementAttributes(const QTestElement *element, const std::vector<QTestElementAttribute*> &attributes) const;
@@ -79,6 +78,9 @@ class QTestJUnitStreamer
void outputString(const char *msg) const;
private:
+ [[nodiscard]] bool formatAttributes(const QTestElement *element,
+ const QTestElementAttribute *attribute,
+ QTestCharBuffer *formatted) const;
static void indentForElement(const QTestElement* element, char* buf, int size);
QJUnitTestLogger *testLogger;