Update ASTJsonExporter.cpp

This commit is contained in:
Leonid Pospelov 2022-08-14 03:07:01 +03:00 committed by GitHub
parent a78a2bcf34
commit 4682c01920
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,8 +37,6 @@
#include <boost/algorithm/string/join.hpp>
#include <range/v3/algorithm/sort.hpp>
#include <utility>
#include <vector>
#include <algorithm>
@ -629,7 +627,7 @@ bool ASTJsonExporter::visit(InlineAssembly const& _node)
Json::Value externalReferencesJson = Json::arrayValue;
ranges::sort(externalReferences);
std::sort(externalReferences.begin(), externalReferences.end());
for (Json::Value& it: externalReferences | ranges::views::values)
externalReferencesJson.append(std::move(it));