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)
|
||||
notAdded->clear();
|
||||
foreach (const QString &path, filePaths) {
|
||||
if (file.contains(index, path))
|
||||
*notAdded << path;
|
||||
else
|
||||
if (file.contains(index, path)) {
|
||||
if (notAdded)
|
||||
*notAdded << path;
|
||||
} else {
|
||||
file.addFile(index, path);
|
||||
}
|
||||
}
|
||||
|
||||
Core::DocumentManager::expectFileChange(resourceFile);
|
||||
|
||||
Reference in New Issue
Block a user