Move documentation json as it is more efficient

Discussed with @alexanderbock
This commit is contained in:
Ylva Selling
2024-03-04 14:27:28 +01:00
parent fc2d48fa06
commit 0454754762
+2 -2
View File
@@ -378,10 +378,10 @@ nlohmann::json DocumentationEngine::generateLicenseGroupsJson() const {
using K = std::string;
using V = nlohmann::json;
for (const std::pair<const K, V>& assetLicense : assetLicenses) {
for (std::pair<const K, V>& assetLicense : assetLicenses) {
nlohmann::json entry;
entry[NameKey] = assetLicense.first;
entry[AssetKey] = assetLicense.second;
entry[AssetKey] = std::move(assetLicense.second);
sortJson(entry[AssetKey], NameKey);
assetsJson[LicensesKey].push_back(entry);
}