Skip to content

Commit

Permalink
Fix more clang-tidy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
marrts committed Mar 7, 2024
1 parent e84ca11 commit 2670523
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tesseract_motion_planners/descartes/src/deserialize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ namespace tesseract_planning
DescartesDefaultPlanProfile<double> descartesPlanParser(const tinyxml2::XMLElement& xml_element)
{
const tinyxml2::XMLElement* descartes_plan_element = xml_element.FirstChildElement("DescartesPlanProfile");
return DescartesDefaultPlanProfile<double>(*descartes_plan_element);
return { *descartes_plan_element };
}

DescartesDefaultPlanProfile<double> descartesPlanFromXMLElement(const tinyxml2::XMLElement* profile_xml)
Expand Down
2 changes: 1 addition & 1 deletion tesseract_motion_planners/descartes/src/serialize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ std::string toXMLString(const DescartesPlanProfile<double>& plan_profile)
std::shared_ptr<tinyxml2::XMLDocument> doc = toXMLDocument(plan_profile);
tinyxml2::XMLPrinter printer;
doc->Print(&printer);
return std::string(printer.CStr());
return { printer.CStr() };
}

} // namespace tesseract_planning
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@

namespace tinyxml2
{
// NOLINTNEXTLINE(cppcoreguidelines-virtual-class-destructor)
class XMLElement;
class XMLDocument;
} // namespace tinyxml2
Expand Down

0 comments on commit 2670523

Please sign in to comment.