This commit is contained in:
Nav
2023-03-27 21:33:28 +01:00
parent dcb723b8ce
commit 51c01d328d

View File

@@ -201,9 +201,7 @@ namespace Bloom
if (jsonObject.contains("focusedRegions")) { if (jsonObject.contains("focusedRegions")) {
for (const auto& regionValue : jsonObject.find("focusedRegions")->toArray()) { for (const auto& regionValue : jsonObject.find("focusedRegions")->toArray()) {
try { try {
inspectionPaneSettings.focusedMemoryRegions.push_back( inspectionPaneSettings.focusedMemoryRegions.emplace_back(regionValue.toObject());
FocusedMemoryRegion(regionValue.toObject())
);
} catch (Exception exception) { } catch (Exception exception) {
Logger::warning( Logger::warning(
@@ -217,9 +215,7 @@ namespace Bloom
if (jsonObject.contains("excludedRegions")) { if (jsonObject.contains("excludedRegions")) {
for (const auto& regionValue : jsonObject.find("excludedRegions")->toArray()) { for (const auto& regionValue : jsonObject.find("excludedRegions")->toArray()) {
try { try {
inspectionPaneSettings.excludedMemoryRegions.emplace_back( inspectionPaneSettings.excludedMemoryRegions.emplace_back(regionValue.toObject());
ExcludedMemoryRegion(regionValue.toObject())
);
} catch (Exception exception) { } catch (Exception exception) {
Logger::warning( Logger::warning(