openbsd-ports/devel/protobuf-c/patches/patch-protoc-c_c_file_h
tb c0524e9a96 Update to protobuf-c 1.3.0 since it's the first version that builds with
protobuf 3.

All consumers tested by jca (sparc64) and myself (amd64).

tweaks & ok jca;
maintainer timeout
2018-07-10 10:49:43 +00:00

28 lines
1.1 KiB
Plaintext

$OpenBSD: patch-protoc-c_c_file_h,v 1.1 2018/07/10 10:49:43 tb Exp $
https://github.com/protobuf-c/protobuf-c/pull/309
https://github.com/protobuf-c/protobuf-c/pull/328
Index: protoc-c/c_file.h
--- protoc-c/c_file.h.orig
+++ protoc-c/c_file.h
@@ -98,13 +98,13 @@ class FileGenerator {
private:
const FileDescriptor* file_;
- scoped_array<scoped_ptr<MessageGenerator> > message_generators_;
- scoped_array<scoped_ptr<EnumGenerator> > enum_generators_;
- scoped_array<scoped_ptr<ServiceGenerator> > service_generators_;
- scoped_array<scoped_ptr<ExtensionGenerator> > extension_generators_;
+ std::unique_ptr<std::unique_ptr<MessageGenerator>[] > message_generators_;
+ std::unique_ptr<std::unique_ptr<EnumGenerator>[] > enum_generators_;
+ std::unique_ptr<std::unique_ptr<ServiceGenerator>[] > service_generators_;
+ std::unique_ptr<std::unique_ptr<ExtensionGenerator>[] > extension_generators_;
// E.g. if the package is foo.bar, package_parts_ is {"foo", "bar"}.
- vector<string> package_parts_;
+ std::vector<string> package_parts_;
GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(FileGenerator);
};