diff --git a/include/sdf/Element.hh b/include/sdf/Element.hh index 6dd2a3bbc..f42a95a32 100644 --- a/include/sdf/Element.hh +++ b/include/sdf/Element.hh @@ -493,7 +493,7 @@ namespace sdf /// \brief The element that was used to load this entity. For /// example, given the following SDFormat: - /// + /// /// /// /// model_uri @@ -501,7 +501,7 @@ namespace sdf /// /// /// - /// The ElementPtr associated with the model loaded from 'model_uri' will + /// The ElementPtr associated with the model loaded from `model_uri` will /// have the includeElement set to /// /// model_uri diff --git a/test/integration/nested_model.cc b/test/integration/nested_model.cc index 0609e9cb6..1cbd6c4a7 100644 --- a/test/integration/nested_model.cc +++ b/test/integration/nested_model.cc @@ -1403,7 +1403,8 @@ TEST(NestedModel, IncludeElements) const std::string modelRootPath = sdf::filesystem::append( PROJECT_SOURCE_PATH, "test", "integration", "model"); - sdf::setFindCallback( + sdf::ParserConfig config; + config.SetFindCallback( [&](const std::string &_file) { return sdf::filesystem::append(modelRootPath, _file); @@ -1445,21 +1446,21 @@ TEST(NestedModel, IncludeElements) test_box 1 2 3 0 0 0 link - + - + test_model test_model 1 2 3 0 0 0 link - + )"; sdf::Root root; - sdf::Errors errors = root.LoadSdfString(stream.str()); + sdf::Errors errors = root.LoadSdfString(stream.str(), config); EXPECT_TRUE(errors.empty()) << errors; auto *world = root.WorldByIndex(0);