mirror of
https://github.com/Xahau/xahaud.git
synced 2025-11-28 14:35:48 +00:00
New utility classes, containers, C++14 compatibility, and fixes:
* Add std::equal_to <void> (since C++14) * Add heterogeneous std::equal (since C++14) * Add maybe_const * Add empty_base_optimization * Add is_constructible specialization for pair, tuple * Add aged associative containers: - aged_set, aged_map, aged_multiset, aged_multimap - aged_unordered_set, aged_unordered_map, - aged_unordered_multiset, aged_unordered_multimap * Fix auto keyword pass by reference * Fix basic_seconds_clock warning and project file
This commit is contained in:
@@ -336,9 +336,9 @@ PropertyStream::Source* PropertyStream::Source::find_one_deep (std::string const
|
||||
if (found != nullptr)
|
||||
return found;
|
||||
SharedState::Access state (this->m_state);
|
||||
for (auto iter : state->children)
|
||||
for (auto& s : state->children)
|
||||
{
|
||||
found = iter.source().find_one_deep (name);
|
||||
found = s.source().find_one_deep (name);
|
||||
if (found != nullptr)
|
||||
return found;
|
||||
}
|
||||
@@ -366,10 +366,10 @@ PropertyStream::Source* PropertyStream::Source::find_path (std::string path)
|
||||
PropertyStream::Source* PropertyStream::Source::find_one (std::string const& name)
|
||||
{
|
||||
SharedState::Access state (this->m_state);
|
||||
for (auto iter : state->children)
|
||||
for (auto& s : state->children)
|
||||
{
|
||||
if (iter.source().m_name == name)
|
||||
return &iter.source();
|
||||
if (s.source().m_name == name)
|
||||
return &s.source();
|
||||
}
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user