Fix schema conditionals not working
This commit is contained in:
parent
ea9fddcd23
commit
64279eb4a3
2 changed files with 2 additions and 2 deletions
|
@ -514,7 +514,7 @@ void wml_tag::key_iterator::ensure_valid_or_end() {
|
|||
}
|
||||
}
|
||||
|
||||
void wml_tag::push_new_tag_conditions(std::queue<const wml_tag*> q, const config& match, const wml_tag& tag) {
|
||||
void wml_tag::push_new_tag_conditions(std::queue<const wml_tag*>& q, const config& match, const wml_tag& tag) {
|
||||
for(const auto& condition : tag.conditions_) {
|
||||
if(condition.matches(match)) {
|
||||
q.push(&condition);
|
||||
|
|
|
@ -52,7 +52,7 @@ public:
|
|||
using condition_list = std::vector<wml_condition>;
|
||||
using super_list = std::vector<wml_tag*>;
|
||||
private:
|
||||
static void push_new_tag_conditions(std::queue<const wml_tag*> q, const config& match, const wml_tag& tag);
|
||||
static void push_new_tag_conditions(std::queue<const wml_tag*>& q, const config& match, const wml_tag& tag);
|
||||
template<typename T, typename Map = std::map<std::string, T>>
|
||||
class iterator : public boost::iterator_facade<iterator<T>, const typename Map::value_type, std::forward_iterator_tag>
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue