From 1ffab51f339ce5bd88dfca4985608c467cb8f807 Mon Sep 17 00:00:00 2001 From: Tobias Fischer Date: Wed, 20 Apr 2022 12:39:26 +1000 Subject: [PATCH 1/2] Fix missing namespace for string --- gazebo/msgs/generator/GazeboGenerator.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gazebo/msgs/generator/GazeboGenerator.cc b/gazebo/msgs/generator/GazeboGenerator.cc index 0a681f6dec..10d76c7df6 100644 --- a/gazebo/msgs/generator/GazeboGenerator.cc +++ b/gazebo/msgs/generator/GazeboGenerator.cc @@ -37,7 +37,7 @@ namespace cpp { GazeboGenerator::GazeboGenerator(const std::string &/*_name*/) {} GazeboGenerator::~GazeboGenerator() {} bool GazeboGenerator::Generate(const FileDescriptor *_file, - const string &/*parameter*/, + const std::string &/*parameter*/, OutputDirectory *_generator_context, std::string * /*_error*/) const { From 407e720f9a057afc6311c91cf541256d5ae2fb88 Mon Sep 17 00:00:00 2001 From: Tobias Fischer Date: Wed, 20 Apr 2022 12:40:15 +1000 Subject: [PATCH 2/2] Update GazeboGenerator.hh --- gazebo/msgs/generator/GazeboGenerator.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gazebo/msgs/generator/GazeboGenerator.hh b/gazebo/msgs/generator/GazeboGenerator.hh index 6900e281aa..665deb8329 100644 --- a/gazebo/msgs/generator/GazeboGenerator.hh +++ b/gazebo/msgs/generator/GazeboGenerator.hh @@ -37,9 +37,9 @@ class GazeboGenerator : public CodeGenerator public: virtual ~GazeboGenerator(); public: virtual bool Generate(const FileDescriptor* file, - const string& parameter, + const std::string& parameter, OutputDirectory *directory, - string* error) const; + std::string* error) const; // private: GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(GazeboGenerator); };