1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-29 01:13:08 +00:00

devel/ignition-msgs: Fix build with protobuf 3.20.0+

This commit is contained in:
Po-Chuan Hsieh 2022-04-16 12:14:54 +08:00
parent da92b2a125
commit 270125f6a1
No known key found for this signature in database
GPG Key ID: 9A4BD10F002DD04B

View File

@ -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);
};