forked from qt-creator/qt-creator
qmljs: coding style.
Change-Id: Icd87c56077db1bc9be3e22e5e841ef849e81a3d2 Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
@@ -431,9 +431,9 @@ QString PluginDumper::buildQmltypesPath(const QString &name) const
|
||||
}
|
||||
|
||||
for (const PathAndLanguage &p: m_modelManager->importPaths()) {
|
||||
QString moduleName(qualifiedName.replace(QLatin1Char('.'), QLatin1Char('/')));
|
||||
QString moduleNameMajor(moduleName + QLatin1Char('.') + majorVersion);
|
||||
QString moduleNameMajorMinor(moduleNameMajor + QLatin1Char('.') + minorVersion);
|
||||
QString moduleName = qualifiedName.replace(QLatin1Char('.'), QLatin1Char('/'));
|
||||
QString moduleNameMajor = moduleName + QLatin1Char('.') + majorVersion;
|
||||
QString moduleNameMajorMinor = moduleNameMajor + QLatin1Char('.') + minorVersion;
|
||||
|
||||
for (const auto n: QStringList{moduleNameMajorMinor, moduleNameMajor, moduleName}) {
|
||||
QString filename(p.path().toString() + QLatin1Char('/') + n
|
||||
|
@@ -182,7 +182,8 @@ void TypeDescriptionReader::addWarning(const SourceLocation &loc, const QString
|
||||
message);
|
||||
}
|
||||
|
||||
void TypeDescriptionReader::readDependencies(UiScriptBinding *ast) {
|
||||
void TypeDescriptionReader::readDependencies(UiScriptBinding *ast)
|
||||
{
|
||||
ExpressionStatement *stmt = dynamic_cast<ExpressionStatement*>(ast->statement);
|
||||
if (!stmt) {
|
||||
addError(ast->statement->firstSourceLocation(), tr("Expected dependency definitions"));
|
||||
|
Reference in New Issue
Block a user