kernel/qplatformprintplugin.cpp

Switch to Source codePreprocessed file
LineSource CodeCoverage
1 -
2 -
3 -
4 -
5static 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
TRUEFALSE
yes
Evaluation Count:4
no
Evaluation Count:0
partially evaluated: !thisGlobalStatic.pointer.testAndSetOrdered(0, x)
TRUEFALSE
no
Evaluation Count:0
yes
Evaluation Count:4
evaluated: !thisGlobalStatic.pointer.load()
TRUEFALSE
yes
Evaluation Count:4
yes
Evaluation Count:4
0-8
6 -
7 -
8 -
9QPlatformPrinterSupportPlugin::QPlatformPrinterSupportPlugin(QObject *parent) -
10 : QObject(parent) -
11{ -
12}
executed: }
Execution Count:4
4
13 -
14QPlatformPrinterSupportPlugin::~QPlatformPrinterSupportPlugin() -
15{ -
16} -
17QPlatformPrinterSupport *QPlatformPrinterSupportPlugin::get() -
18{ -
19 static QPlatformPrinterSupport *singleton = 0; -
20 if (!singleton) {
evaluated: !singleton
TRUEFALSE
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()
TRUEFALSE
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 -
Switch to Source codePreprocessed file

Generated by Squish Coco Non-Commercial