forked from qt-creator/qt-creator
Utils: Remove variant.h
Since we are now requiring macOS 10.14 we can remove our local copy of std::variant and use for macOS std::variant too. Change-Id: I589d03b35fc56878b7392ffa7047a439e588fe43 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -296,10 +296,10 @@ void LanguageClientOutlineWidget::handleResponse(const DocumentUri &uri,
|
||||
{
|
||||
if (uri != m_uri)
|
||||
return;
|
||||
if (Utils::holds_alternative<QList<SymbolInformation>>(result))
|
||||
m_model.setInfo(Utils::get<QList<SymbolInformation>>(result));
|
||||
else if (Utils::holds_alternative<QList<DocumentSymbol>>(result))
|
||||
m_model.setInfo(Utils::get<QList<DocumentSymbol>>(result));
|
||||
if (std::holds_alternative<QList<SymbolInformation>>(result))
|
||||
m_model.setInfo(std::get<QList<SymbolInformation>>(result));
|
||||
else if (std::holds_alternative<QList<DocumentSymbol>>(result))
|
||||
m_model.setInfo(std::get<QList<DocumentSymbol>>(result));
|
||||
else
|
||||
m_model.clear();
|
||||
|
||||
@@ -440,10 +440,10 @@ void OutlineComboBox::updateModel(const DocumentUri &resultUri, const DocumentSy
|
||||
{
|
||||
if (m_uri != resultUri)
|
||||
return;
|
||||
if (Utils::holds_alternative<QList<SymbolInformation>>(result))
|
||||
m_model.setInfo(Utils::get<QList<SymbolInformation>>(result));
|
||||
else if (Utils::holds_alternative<QList<DocumentSymbol>>(result))
|
||||
m_model.setInfo(Utils::get<QList<DocumentSymbol>>(result));
|
||||
if (std::holds_alternative<QList<SymbolInformation>>(result))
|
||||
m_model.setInfo(std::get<QList<SymbolInformation>>(result));
|
||||
else if (std::holds_alternative<QList<DocumentSymbol>>(result))
|
||||
m_model.setInfo(std::get<QList<DocumentSymbol>>(result));
|
||||
else
|
||||
m_model.clear();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user