Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
drexlerd committed Feb 17, 2024
1 parent 2921673 commit a209110
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/loki/common/pddl/persistent_factory.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class PersistentFactory {
auto it = m_uniqueness_set.find(element_ptr);
if (it == m_uniqueness_set.end()) {
// Element is unique!
m_uniqueness_set.emplace(element_ptr);
m_uniqueness_set.insert(element_ptr);
// Validate the element by increasing the identifier to the next free position
++m_count;
assert(m_uniqueness_set.size() == m_count);
Expand Down
2 changes: 1 addition & 1 deletion src/domain/pddl/parser/parameters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ static pddl::Parameter parse_parameter_definition(const domain::ast::Variable& v
static pddl::ParameterList parse_parameter_definitions(const std::vector<domain::ast::Variable>& variable_nodes, const pddl::TypeList& type_list, Context& context) {
auto parameter_list = pddl::ParameterList();
for (const auto& variable_node : variable_nodes) {
parameter_list.emplace_back(parse_parameter_definition(variable_node, type_list, context));
parameter_list.push_back(parse_parameter_definition(variable_node, type_list, context));
}
return parameter_list;
}
Expand Down
2 changes: 1 addition & 1 deletion src/domain/pddl/parser/predicates.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ static pddl::Predicate parse_predicate_definition(const domain::ast::AtomicFormu
static pddl::PredicateList parse_predicate_definitions(const std::vector<domain::ast::AtomicFormulaSkeleton>& nodes, Context& context) {
auto predicate_list = pddl::PredicateList();
for (const auto& node : nodes) {
predicate_list.emplace_back(parse_predicate_definition(node, context));
predicate_list.push_back(parse_predicate_definition(node, context));
}
return predicate_list;
}
Expand Down

0 comments on commit a209110

Please sign in to comment.