diff options
author | Joerg Bornemann <joerg.bornemann@digia.com> | 2014-03-17 18:27:10 +0100 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@digia.com> | 2014-03-25 14:19:32 +0100 |
commit | a55314a6dd3c2f4778b3de259748f1ee6ba6e16b (patch) | |
tree | a4c2629ff4dbaab583ee84e49501fe91f80ac8fb /src/lib/corelib/language/projectresolver.cpp | |
parent | a68fbbbf66b8ef65df9c4cc870b11c0e1b414512 (diff) |
make PropertyDeclaration implicitly shared
Change-Id: Iad2f353371bd64ce8138dc86ed1f07ac994cf237
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
Diffstat (limited to 'src/lib/corelib/language/projectresolver.cpp')
-rw-r--r-- | src/lib/corelib/language/projectresolver.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/lib/corelib/language/projectresolver.cpp b/src/lib/corelib/language/projectresolver.cpp index 66ecb9fd5..528be2a8e 100644 --- a/src/lib/corelib/language/projectresolver.cpp +++ b/src/lib/corelib/language/projectresolver.cpp @@ -213,7 +213,7 @@ void ProjectResolver::resolveProject(Item *item, ProjectContext *projectContext) for (Item::PropertyDeclarationMap::const_iterator it = item->propertyDeclarations().constBegin(); it != item->propertyDeclarations().constEnd(); ++it) { - if (it.value().flags.testFlag(PropertyDeclaration::PropertyNotAvailableInConfig)) + if (it.value().flags().testFlag(PropertyDeclaration::PropertyNotAvailableInConfig)) continue; const ValueConstPtr v = item->property(it.key()); QBS_ASSERT(v && v->type() != Value::ItemValueType, continue); @@ -532,7 +532,7 @@ void ProjectResolver::resolveGroup(Item *item, ProjectContext *projectContext) static QString sourceCodeAsFunction(const JSSourceValueConstPtr &value, const PropertyDeclaration &decl) { - const QString args = decl.functionArgumentNames.join(QLatin1String(",")); + const QString args = decl.functionArgumentNames().join(QLatin1String(",")); if (value->hasFunctionForm()) { // Insert the argument list. QString code = value->sourceCode(); @@ -553,7 +553,7 @@ ScriptFunctionPtr ProjectResolver::scriptFunctionValue(Item *item, const QString if (value) { const PropertyDeclaration decl = item->propertyDeclaration(name); script->sourceCode = sourceCodeAsFunction(value, decl); - script->argumentNames = decl.functionArgumentNames; + script->argumentNames = decl.functionArgumentNames(); script->location = value->location(); script->fileContext = resolvedFileContext(value->file()); } @@ -971,8 +971,8 @@ QVariantMap ProjectResolver::evaluateProperties(Item *item, if (pd.isValid()) break; } - if (pd.type == PropertyDeclaration::Verbatim - || pd.flags.testFlag(PropertyDeclaration::PropertyNotAvailableInConfig)) + if (pd.type() == PropertyDeclaration::Verbatim + || pd.flags().testFlag(PropertyDeclaration::PropertyNotAvailableInConfig)) { break; } @@ -984,13 +984,13 @@ QVariantMap ProjectResolver::evaluateProperties(Item *item, // as such QScriptValues become invalid QVariants. QVariant v = scriptValue.toVariant(); - if (pd.type == PropertyDeclaration::Path) + if (pd.type() == PropertyDeclaration::Path) v = convertPathProperty(v.toString(), m_productContext->product->sourceDirectory); - else if (pd.type == PropertyDeclaration::PathList) + else if (pd.type() == PropertyDeclaration::PathList) v = convertPathListProperty(v.toStringList(), m_productContext->product->sourceDirectory); - else if (pd.type == PropertyDeclaration::StringList) + else if (pd.type() == PropertyDeclaration::StringList) v = v.toStringList(); result[it.key()] = v; break; |