Qt 4.8
Public Functions | List of all members
QTest::TestFuncCleanup Struct Reference

Public Functions

void cleanup ()
 
 ~TestFuncCleanup ()
 

Detailed Description

Don't leak testFuncs on exit even on error

Definition at line 926 of file qtestcase.cpp.

Constructors and Destructors

◆ ~TestFuncCleanup()

QTest::TestFuncCleanup::~TestFuncCleanup ( )
inline

Definition at line 935 of file qtestcase.cpp.

935 { cleanup(); }

Functions

◆ cleanup()

void QTest::TestFuncCleanup::cleanup ( )
inline

Definition at line 928 of file qtestcase.cpp.

Referenced by QTest::qInvokeTestMethods().

929  {
930  delete[] testFuncs;
931  testFuncCount = 0;
932  testFuncs = 0;
933  }
static TestFunction * testFuncs
Definition: qtestcase.cpp:922
static int testFuncCount
Definition: qtestcase.cpp:923

The documentation for this struct was generated from the following file: