MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / writeChanges

Function writeChanges

tools/normalize/main.cpp:100–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100void writeChanges(const QString &fileName, const QStringList &lines)
101{
102 QFile file(fileName);
103 if (!file.open(QIODevice::WriteOnly)) {
104 qDebug("unable to open file '%s' for writing (%s)", fileName.toLocal8Bit().constData(), file.errorString().toLocal8Bit().constData());
105 return;
106 }
107 QTextStream stream(&file);
108 for (int i = 0; i < lines.count(); ++i)
109 stream << lines.at(i);
110 file.close();
111}
112
113void check(const QString &fileName)
114{

Callers 1

checkFunction · 0.85

Calls 4

atMethod · 0.80
openMethod · 0.45
countMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected