Skip to content
Snippets Groups Projects
Commit 48697263 authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Fix linux and mac

parent f59ab2de
No related branches found
No related tags found
2 merge requests!3Update to main branch,!2Rebase onto current main branch
...@@ -174,12 +174,15 @@ LLSD LLSettingsBase::interpolateSDMap(const LLSD &settings, const LLSD &other, c ...@@ -174,12 +174,15 @@ LLSD LLSettingsBase::interpolateSDMap(const LLSD &settings, const LLSD &other, c
const auto& other_map = other.map(); const auto& other_map = other.map();
const auto& settings_map = settings.map(); const auto& settings_map = settings.map();
const auto skipEnd = skip.end();
const auto settingsEnd = settings_map.end();
for (const auto& llsd_pair : settings_map) for (const auto& llsd_pair : settings_map)
{ {
const std::string& key_name = llsd_pair.first; const std::string& key_name = llsd_pair.first;
const LLSD& value = llsd_pair.second; const LLSD& value = llsd_pair.second;
if (skip.contains(key_name)) if (skip.find(key_name) != skipEnd)
continue; continue;
LLSD other_value; LLSD other_value;
...@@ -232,10 +235,10 @@ LLSD LLSettingsBase::interpolateSDMap(const LLSD &settings, const LLSD &other, c ...@@ -232,10 +235,10 @@ LLSD LLSettingsBase::interpolateSDMap(const LLSD &settings, const LLSD &other, c
{ {
const std::string& key_name = llsd_pair.first; const std::string& key_name = llsd_pair.first;
if (skip.contains(key_name)) if (skip.find(key_name) != skipEnd)
continue; continue;
if (settings_map.contains(key_name)) if (settings_map.find(key_name) != settingsEnd)
continue; continue;
parammapping_t::const_iterator def_iter = defaults.find(key_name); parammapping_t::const_iterator def_iter = defaults.find(key_name);
...@@ -257,10 +260,10 @@ LLSD LLSettingsBase::interpolateSDMap(const LLSD &settings, const LLSD &other, c ...@@ -257,10 +260,10 @@ LLSD LLSettingsBase::interpolateSDMap(const LLSD &settings, const LLSD &other, c
for (const auto& llsd_pair : other.map()) for (const auto& llsd_pair : other.map())
{ {
// TODO: Should I blend this in instead? // TODO: Should I blend this in instead?
if (!skip.contains(llsd_pair.first)) if (skip.find(llsd_pair.first) == skipEnd)
continue; continue;
if (!settings_map.contains(llsd_pair.first)) if (settings_map.find(llsd_pair.first) == settingsEnd)
continue; continue;
newSettings[llsd_pair.first] = llsd_pair.second; newSettings[llsd_pair.first] = llsd_pair.second;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment