forked from qt-creator/qt-creator
Remove some QList::toVector() no-ops
Change-Id: I4d7ecf26a2d18b7e58e8bbae8d1b12f3e73924d9 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -1169,7 +1169,7 @@ void AndroidConfigurations::removeUnusedDebuggers()
|
|||||||
uniqueNdks.append(ndkLocation);
|
uniqueNdks.append(ndkLocation);
|
||||||
}
|
}
|
||||||
|
|
||||||
uniqueNdks.append(FileUtils::toFilePathList(currentConfig().getCustomNdkList()).toVector());
|
uniqueNdks.append(FileUtils::toFilePathList(currentConfig().getCustomNdkList()));
|
||||||
|
|
||||||
const QList<Debugger::DebuggerItem> allDebuggers = Debugger::DebuggerItemManager::debuggers();
|
const QList<Debugger::DebuggerItem> allDebuggers = Debugger::DebuggerItemManager::debuggers();
|
||||||
for (const Debugger::DebuggerItem &debugger : allDebuggers) {
|
for (const Debugger::DebuggerItem &debugger : allDebuggers) {
|
||||||
|
@@ -294,7 +294,7 @@ QStringList extraClangToolsPrependOptions()
|
|||||||
static const QStringList options = extraOptions(csaPrependOptions)
|
static const QStringList options = extraOptions(csaPrependOptions)
|
||||||
+ extraOptions(toolsPrependOptions);
|
+ extraOptions(toolsPrependOptions);
|
||||||
if (!options.isEmpty())
|
if (!options.isEmpty())
|
||||||
qWarning() << "ClangTools options are prepended with " << options.toVector();
|
qWarning() << "ClangTools options are prepended with " << options;
|
||||||
return options;
|
return options;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -305,7 +305,7 @@ QStringList extraClangToolsAppendOptions()
|
|||||||
static const QStringList options = extraOptions(csaAppendOptions)
|
static const QStringList options = extraOptions(csaAppendOptions)
|
||||||
+ extraOptions(toolsAppendOptions);
|
+ extraOptions(toolsAppendOptions);
|
||||||
if (!options.isEmpty())
|
if (!options.isEmpty())
|
||||||
qWarning() << "ClangTools options are appended with " << options.toVector();
|
qWarning() << "ClangTools options are appended with " << options;
|
||||||
return options;
|
return options;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -301,7 +301,7 @@ void WorkspaceLocatorFilter::handleResponse(Client *client,
|
|||||||
auto result = response.result().value_or(LanguageClientArray<SymbolInformation>());
|
auto result = response.result().value_or(LanguageClientArray<SymbolInformation>());
|
||||||
if (!result.isNull())
|
if (!result.isNull())
|
||||||
m_results.append(
|
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()};
|
return SymbolInfoWithPathMapper{info, client->hostPathMapper()};
|
||||||
}));
|
}));
|
||||||
if (m_pendingRequests.isEmpty())
|
if (m_pendingRequests.isEmpty())
|
||||||
|
@@ -870,7 +870,7 @@ NodeInstance NodeInstanceView::activeStateInstance() const
|
|||||||
|
|
||||||
void NodeInstanceView::updateChildren(const NodeAbstractProperty &newPropertyParent)
|
void NodeInstanceView::updateChildren(const NodeAbstractProperty &newPropertyParent)
|
||||||
{
|
{
|
||||||
const QVector<ModelNode> childNodeVector = newPropertyParent.directSubNodes().toVector();
|
const QList<ModelNode> childNodeVector = newPropertyParent.directSubNodes();
|
||||||
|
|
||||||
qint32 parentInstanceId = newPropertyParent.parentModelNode().internalId();
|
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()));
|
m_nodeInstanceServer->benchmark(Q_FUNC_INFO + QString::number(renderImageChangeSet.count()));
|
||||||
|
|
||||||
if (!renderImageChangeSet.isEmpty())
|
if (!renderImageChangeSet.isEmpty())
|
||||||
emitInstancesRenderImageChanged(Utils::toList(renderImageChangeSet).toVector());
|
emitInstancesRenderImageChanged(Utils::toList(renderImageChangeSet));
|
||||||
|
|
||||||
if (!containerVector.isEmpty()) {
|
if (!containerVector.isEmpty()) {
|
||||||
QMultiHash<ModelNode, InformationName> informationChangeHash = informationChanged(
|
QMultiHash<ModelNode, InformationName> informationChangeHash = informationChanged(
|
||||||
|
Reference in New Issue
Block a user