Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
devel/ignition-msgs: Fix build with protobuf 3.20.0+
- Loading branch information
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- src/Generator.cc.orig 2018-11-02 21:28:13 UTC | ||
+++ src/Generator.cc | ||
@@ -67,7 +67,7 @@ Generator::~Generator() | ||
|
||
///////////////////////////////////////////////// | ||
bool Generator::Generate(const FileDescriptor *_file, | ||
- const string &/*_parameter*/, | ||
+ const std::string &/*_parameter*/, | ||
OutputDirectory *_generatorContext, | ||
std::string * /*_error*/) const | ||
{ | ||
--- src/Generator.hh.orig 2018-11-02 21:28:13 UTC | ||
+++ src/Generator.hh | ||
@@ -44,9 +44,9 @@ class Generator : public CodeGenerator | ||
/// \param[in] _generatorContext Output directory. | ||
/// \param[in] _error Unused string value | ||
public: virtual bool Generate(const FileDescriptor *_file, | ||
- const string &_parameter, | ||
+ const std::string &_parameter, | ||
OutputDirectory *_generatorContext, | ||
- string *_error) const; | ||
+ std::string *_error) const; | ||
|
||
// private: GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(Generator); | ||
}; |