Remove some QList::toVector() no-ops

Change-Id: I4d7ecf26a2d18b7e58e8bbae8d1b12f3e73924d9
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2023-04-04 16:10:21 +02:00
parent 2534226d26
commit f10a524f05
4 changed files with 6 additions and 6 deletions

View File

@@ -1169,7 +1169,7 @@ void AndroidConfigurations::removeUnusedDebuggers()
uniqueNdks.append(ndkLocation);
}
uniqueNdks.append(FileUtils::toFilePathList(currentConfig().getCustomNdkList()).toVector());
uniqueNdks.append(FileUtils::toFilePathList(currentConfig().getCustomNdkList()));
const QList<Debugger::DebuggerItem> allDebuggers = Debugger::DebuggerItemManager::debuggers();
for (const Debugger::DebuggerItem &debugger : allDebuggers) {

View File

@@ -294,7 +294,7 @@ QStringList extraClangToolsPrependOptions()
static const QStringList options = extraOptions(csaPrependOptions)
+ extraOptions(toolsPrependOptions);
if (!options.isEmpty())
qWarning() << "ClangTools options are prepended with " << options.toVector();
qWarning() << "ClangTools options are prepended with " << options;
return options;
}
@@ -305,7 +305,7 @@ QStringList extraClangToolsAppendOptions()
static const QStringList options = extraOptions(csaAppendOptions)
+ extraOptions(toolsAppendOptions);
if (!options.isEmpty())
qWarning() << "ClangTools options are appended with " << options.toVector();
qWarning() << "ClangTools options are appended with " << options;
return options;
}

View File

@@ -301,7 +301,7 @@ void WorkspaceLocatorFilter::handleResponse(Client *client,
auto result = response.result().value_or(LanguageClientArray<SymbolInformation>());
if (!result.isNull())
m_results.append(
Utils::transform(result.toList().toVector(), [client](const SymbolInformation &info) {
Utils::transform(result.toList(), [client](const SymbolInformation &info) {
return SymbolInfoWithPathMapper{info, client->hostPathMapper()};
}));
if (m_pendingRequests.isEmpty())

View File

@@ -870,7 +870,7 @@ NodeInstance NodeInstanceView::activeStateInstance() const
void NodeInstanceView::updateChildren(const NodeAbstractProperty &newPropertyParent)
{
const QVector<ModelNode> childNodeVector = newPropertyParent.directSubNodes().toVector();
const QList<ModelNode> childNodeVector = newPropertyParent.directSubNodes();
qint32 parentInstanceId = newPropertyParent.parentModelNode().internalId();
@@ -1506,7 +1506,7 @@ void NodeInstanceView::pixmapChanged(const PixmapChangedCommand &command)
m_nodeInstanceServer->benchmark(Q_FUNC_INFO + QString::number(renderImageChangeSet.count()));
if (!renderImageChangeSet.isEmpty())
emitInstancesRenderImageChanged(Utils::toList(renderImageChangeSet).toVector());
emitInstancesRenderImageChanged(Utils::toList(renderImageChangeSet));
if (!containerVector.isEmpty()) {
QMultiHash<ModelNode, InformationName> informationChangeHash = informationChanged(