Line | Source Code | Coverage |
---|
1 | | - |
2 | | - |
3 | | - |
4 | | - |
5 | static QFactoryLoader *loader() { static QGlobalStatic<QFactoryLoader > thisGlobalStatic = { { (0) }, false }; if (!thisGlobalStatic.pointer.load() && !thisGlobalStatic.destroyed) { QFactoryLoader *x = new QFactoryLoader ("org.qt-project.QPlatformPrinterSupportFactoryInterface", QLatin1String("/printsupport"), Qt::CaseInsensitive); if (!thisGlobalStatic.pointer.testAndSetOrdered(0, x)) delete x; else static QGlobalStaticDeleter<QFactoryLoader > cleanup(thisGlobalStatic); } return thisGlobalStatic.pointer.load(); } never executed: delete x; executed: return thisGlobalStatic.pointer.load(); Execution Count:8 partially evaluated: !thisGlobalStatic.destroyed yes Evaluation Count:4 | no Evaluation Count:0 |
partially evaluated: !thisGlobalStatic.pointer.testAndSetOrdered(0, x) no Evaluation Count:0 | yes Evaluation Count:4 |
evaluated: !thisGlobalStatic.pointer.load() yes Evaluation Count:4 | yes Evaluation Count:4 |
| 0-8 |
6 | | - |
7 | | - |
8 | | - |
9 | QPlatformPrinterSupportPlugin::QPlatformPrinterSupportPlugin(QObject *parent) | - |
10 | : QObject(parent) | - |
11 | { | - |
12 | } executed: } Execution Count:4 | 4 |
13 | | - |
14 | QPlatformPrinterSupportPlugin::~QPlatformPrinterSupportPlugin() | - |
15 | { | - |
16 | } | - |
17 | QPlatformPrinterSupport *QPlatformPrinterSupportPlugin::get() | - |
18 | { | - |
19 | static QPlatformPrinterSupport *singleton = 0; | - |
20 | if (!singleton) { evaluated: !singleton yes Evaluation Count:4 | yes Evaluation Count:419 |
| 4-419 |
21 | const QMultiMap<int, QString> keyMap = loader()->keyMap(); | - |
22 | if (!keyMap.isEmpty()) partially evaluated: !keyMap.isEmpty() yes Evaluation Count:4 | no Evaluation Count:0 |
| 0-4 |
23 | singleton = qLoadPlugin<QPlatformPrinterSupport, QPlatformPrinterSupportPlugin>(loader(), keyMap.constBegin().value()); executed: singleton = qLoadPlugin<QPlatformPrinterSupport, QPlatformPrinterSupportPlugin>(loader(), keyMap.constBegin().value()); Execution Count:4 | 4 |
24 | } executed: } Execution Count:4 | 4 |
25 | return singleton; executed: return singleton; Execution Count:423 | 423 |
26 | } | - |
27 | | - |
28 | | - |
29 | | - |
| | |