MCPcopy Create free account
hub / github.com/QNapi/qnapi / generateTmpFileName

Method generateTmpFileName

libqnapi/src/engines/subtitledownloadengine.cpp:50–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50QString SubtitleDownloadEngine::generateTmpFileName() const {
51 static bool gen_inited;
52 if (!gen_inited) {
53 qsrand(time(0));
54 gen_inited = true;
55 }
56 return QString("QNapi.%1.tmp").arg(qrand());
57}
58
59QString SubtitleDownloadEngine::generateTmpPath() const {
60 QString newTmpFilePath =

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected