We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be34a48 commit a9cfa0dCopy full SHA for a9cfa0d
src/Util.cc
@@ -34,6 +34,7 @@
34
#include <ignition/common/StringUtils.hh>
35
#include <ignition/common/Util.hh>
36
#include <ignition/transport/TopicUtils.hh>
37
+#include <sdf/Types.hh>
38
39
#include "ignition/gazebo/components/Actor.hh"
40
#include "ignition/gazebo/components/Collision.hh"
@@ -295,7 +296,7 @@ std::string asFullPath(const std::string &_uri, const std::string &_filePath)
295
296
#endif
297
298
// When SDF is loaded from a string instead of a file
- if ("data-string" == _filePath)
299
+ if (std::string(sdf::kSdfStringSource) == _filePath)
300
{
301
ignwarn << "Can't resolve full path for relative path ["
302
<< _uri << "]. Loaded from a data-string." << std::endl;
0 commit comments