diff --git a/xml_converter/generators/cpp_templates/class_template.cpp b/xml_converter/generators/cpp_templates/class_template.cpp index cae3d122..2cf0f2d2 100644 --- a/xml_converter/generators/cpp_templates/class_template.cpp +++ b/xml_converter/generators/cpp_templates/class_template.cpp @@ -94,10 +94,10 @@ vector {{cpp_class}}::as_xml() const { } {% if cpp_class == "Category": %} -waypoint::{{cpp_class}} {{cpp_class}}::as_protobuf(string full_category_name, map>* parsed_pois) const { - full_category_name += this->name; + waypoint::{{cpp_class}} {{cpp_class}}::as_protobuf(string full_category_name, map>* parsed_pois) const { + full_category_name += this->name; {% else %} -waypoint::{{cpp_class}} {{cpp_class}}::as_protobuf() const { + waypoint::{{cpp_class}} {{cpp_class}}::as_protobuf() const { {% endif %} waypoint::{{cpp_class}} proto_{{cpp_class_header}}; {% if cpp_class == "Icon": %} diff --git a/xml_converter/generators/cpp_templates/class_template.hpp b/xml_converter/generators/cpp_templates/class_template.hpp index bd2b3bf9..72102bf5 100644 --- a/xml_converter/generators/cpp_templates/class_template.hpp +++ b/xml_converter/generators/cpp_templates/class_template.hpp @@ -35,9 +35,9 @@ class {{cpp_class}} : public Parseable { virtual std::string classname(); bool init_xml_attribute(rapidxml::xml_attribute<>* attribute, std::vector* errors, std::string base_dir = ""); {% if cpp_class == "Category": %} - waypoint::{{cpp_class}} as_protobuf(std::string full_category_name, std::map>* parsed_pois) const; + waypoint::{{cpp_class}} as_protobuf(std::string full_category_name, std::map>* parsed_pois) const; {% else: %} - waypoint::{{cpp_class}} as_protobuf() const; + waypoint::{{cpp_class}} as_protobuf() const; {% endif %} void parse_protobuf(waypoint::{{cpp_class}} proto_{{cpp_class_header}}); {% if attributes_of_type_marker_category %}