forked from qt-creator/qt-creator
Fix build
operator% is defined in QStringBuilder header, which was unincluded in
32b628e16b
.
Change-Id: Ib028485ed4e7d6362df1df5d678cb8009ac3c67c
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
32b628e16b
commit
c0378e086b
@@ -706,7 +706,7 @@ JsonSchema *JsonSchemaManager::schemaByName(const QString &baseName) const
|
|||||||
QHash<QString, JsonSchemaData>::iterator it = m_schemas.find(baseName);
|
QHash<QString, JsonSchemaData>::iterator it = m_schemas.find(baseName);
|
||||||
if (it == m_schemas.end()) {
|
if (it == m_schemas.end()) {
|
||||||
foreach (const QString &path, m_searchPaths) {
|
foreach (const QString &path, m_searchPaths) {
|
||||||
QFileInfo candidate(path % baseName % QLatin1String(".json"));
|
QFileInfo candidate(path + baseName + ".json");
|
||||||
if (candidate.exists()) {
|
if (candidate.exists()) {
|
||||||
m_schemas.insert(baseName, candidate.absoluteFilePath());
|
m_schemas.insert(baseName, candidate.absoluteFilePath());
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user