Doc: Fix compilation issue with QVERIFY2 example
Fixes
error C2124: divide or mod by zero
when compiling the test code (enabled by
713cd83200).
Pick-to: 5.15
Change-Id: I2ae39426fc0012f79714ff3d6484d792cab4bd92
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
bb10
parent
9802b93cc7
commit
10acfec765
|
|
@ -84,7 +84,7 @@ class TestQString : public QObject
|
|||
void wrapInFunction()
|
||||
{
|
||||
//! [1]
|
||||
QVERIFY2(qIsNaN(0.0 / 0.0), "Ill-defined division produced unambiguous result.");
|
||||
QVERIFY2(QFileInfo("file.txt").exists(), "file.txt does not exist.");
|
||||
//! [1]
|
||||
|
||||
//! [2]
|
||||
|
|
|
|||
Loading…
Reference in New Issue