summaryrefslogtreecommitdiffstats
path: root/src/testlib/doc
diff options
context:
space:
mode:
authorKai Köhne <kai.koehne@qt.io>2021-06-07 08:47:00 +0200
committerKai Köhne <kai.koehne@qt.io>2021-06-08 08:33:56 +0200
commita880c791ec0914b2ee56a941765434ada6b173ee (patch)
tree8dd5c80861d1cec24c9da2c5d7215ca1dc37128c /src/testlib/doc
parent6ab665b9f3537dce8735f5edb2e4de92acb10475 (diff)
Fix MSVC compiler warning in code snippets
Fixes warning C5046: 'testObject::MyTestObject::toString': Symbol involving type with internal linkage not defined Change-Id: I9925eb15e262f29e636c019c87311a6ea2c47505 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> Reviewed-by: Paul Wicking <paul.wicking@qt.io>
Diffstat (limited to 'src/testlib/doc')
-rw-r--r--src/testlib/doc/snippets/code/src_qtestlib_qtestcase.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/testlib/doc/snippets/code/src_qtestlib_qtestcase.cpp b/src/testlib/doc/snippets/code/src_qtestlib_qtestcase.cpp
index ceb2743141..bea1ee6d6c 100644
--- a/src/testlib/doc/snippets/code/src_qtestlib_qtestcase.cpp
+++ b/src/testlib/doc/snippets/code/src_qtestlib_qtestcase.cpp
@@ -158,11 +158,9 @@ QTEST_MAIN(TestQString)
void testObject()
{
-class MyTestObject: public QObject
-{
- public:
- void toString();
-};
+ class MyTestObject : public QObject
+ {
+ };
//! [18]
MyTestObject test1;
QTest::qExec(&test1);