Line | Source Code | Coverage |
---|
1 | | - |
2 | | - |
3 | | - |
4 | static QCoreGlobalData *globalInstance() { static QGlobalStatic<QCoreGlobalData > thisGlobalStatic = { { (0) }, false }; if (!thisGlobalStatic.pointer.load() && !thisGlobalStatic.destroyed) { QCoreGlobalData *x = new QCoreGlobalData; if (!thisGlobalStatic.pointer.testAndSetOrdered(0, x)) delete x; else static QGlobalStaticDeleter<QCoreGlobalData > cleanup(thisGlobalStatic); } return thisGlobalStatic.pointer.load(); } never executed: delete x; executed: return thisGlobalStatic.pointer.load(); Execution Count:498898 partially evaluated: !thisGlobalStatic.pointer.testAndSetOrdered(0, x) no Evaluation Count:0 | yes Evaluation Count:116 |
evaluated: !thisGlobalStatic.pointer.load() yes Evaluation Count:117 | yes Evaluation Count:498779 |
evaluated: !thisGlobalStatic.destroyed yes Evaluation Count:116 | yes Evaluation Count:1 |
| 0-498898 |
5 | | - |
6 | QCoreGlobalData::QCoreGlobalData() | - |
7 | : codecForLocale(0) | - |
8 | { | - |
9 | } executed: } Execution Count:116 | 116 |
10 | | - |
11 | QCoreGlobalData::~QCoreGlobalData() | - |
12 | { | - |
13 | codecForLocale = 0; | - |
14 | for (QList<QTextCodec *>::const_iterator it = allCodecs.constBegin(); it != allCodecs.constEnd(); ++it) evaluated: it != allCodecs.constEnd() yes Evaluation Count:459 | yes Evaluation Count:318 |
| 318-459 |
15 | delete *it; executed: delete *it; Execution Count:459 | 459 |
16 | } executed: } Execution Count:318 | 318 |
17 | | - |
18 | QCoreGlobalData *QCoreGlobalData::instance() | - |
19 | { | - |
20 | return globalInstance(); executed: return globalInstance(); Execution Count:498897 | 498897 |
21 | } | - |
22 | | - |
23 | | - |
24 | | - |
| | |