forked from qt-creator/qt-creator
ResourceEditor: Make static code checker happy
Change-Id: Ic9a13a145c153a2fa2aeee61f4a97af274509a58 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -75,10 +75,12 @@ static bool addFilesToResource(const QString &resourceFile, const QStringList &f
|
|||||||
if (notAdded)
|
if (notAdded)
|
||||||
notAdded->clear();
|
notAdded->clear();
|
||||||
foreach (const QString &path, filePaths) {
|
foreach (const QString &path, filePaths) {
|
||||||
if (file.contains(index, path))
|
if (file.contains(index, path)) {
|
||||||
*notAdded << path;
|
if (notAdded)
|
||||||
else
|
*notAdded << path;
|
||||||
|
} else {
|
||||||
file.addFile(index, path);
|
file.addFile(index, path);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Core::DocumentManager::expectFileChange(resourceFile);
|
Core::DocumentManager::expectFileChange(resourceFile);
|
||||||
|
|||||||
Reference in New Issue
Block a user