MCPcopy Create free account
hub / github.com/KDE/kdevelop / setCrashCounter

Function setCrashCounter

kdevplatform/serialization/itemrepositoryregistry.cpp:34–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32const int crashesBeforeCleanup = 1;
33
34void setCrashCounter(QFile& crashesFile, int count)
35{
36 crashesFile.close();
37 crashesFile.open(QIODevice::WriteOnly | QIODevice::Truncate);
38 QDataStream writeStream(&crashesFile);
39 writeStream << count;
40}
41
42bool shouldClear(const QString& path)
43{

Callers 1

shouldClearFunction · 0.85

Calls 2

closeMethod · 0.45
openMethod · 0.45

Tested by

no test coverage detected