Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
9497a657
Unverified
Commit
9497a657
authored
Apr 16, 2018
by
Adam Cozzette
Committed by
GitHub
Apr 16, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4517 from rcane/feature/vc2017_build_fix
Fixed a Visual Studio 2017 build error. (#4488)
parents
a9d9326a
7d6d5f91
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
13 additions
and
20 deletions
+13
-20
cpp_field.cc
src/google/protobuf/compiler/cpp/cpp_field.cc
+1
-2
cpp_field.h
src/google/protobuf/compiler/cpp/cpp_field.h
+1
-1
java_field.cc
src/google/protobuf/compiler/java/java_field.cc
+2
-4
java_field.h
src/google/protobuf/compiler/java/java_field.h
+1
-1
java_file.cc
src/google/protobuf/compiler/java/java_file.cc
+2
-4
java_file.h
src/google/protobuf/compiler/java/java_file.h
+2
-2
objectivec_field.cc
src/google/protobuf/compiler/objectivec/objectivec_field.cc
+2
-4
objectivec_field.h
src/google/protobuf/compiler/objectivec/objectivec_field.h
+2
-2
No files found.
src/google/protobuf/compiler/cpp/cpp_field.cc
View file @
9497a657
...
...
@@ -117,8 +117,7 @@ FieldGeneratorMap::FieldGeneratorMap(const Descriptor* descriptor,
SCCAnalyzer
*
scc_analyzer
)
:
descriptor_
(
descriptor
),
options_
(
options
),
field_generators_
(
new
std
::
unique_ptr
<
FieldGenerator
>
[
descriptor
->
field_count
()])
{
field_generators_
(
descriptor
->
field_count
())
{
// Construct all the FieldGenerators.
for
(
int
i
=
0
;
i
<
descriptor
->
field_count
();
i
++
)
{
field_generators_
[
i
].
reset
(
...
...
src/google/protobuf/compiler/cpp/cpp_field.h
View file @
9497a657
...
...
@@ -203,7 +203,7 @@ class FieldGeneratorMap {
private
:
const
Descriptor
*
descriptor_
;
const
Options
&
options_
;
std
::
unique_ptr
<
std
::
unique_ptr
<
FieldGenerator
>
[]
>
field_generators_
;
std
::
vector
<
std
::
unique_ptr
<
FieldGenerator
>
>
field_generators_
;
static
FieldGenerator
*
MakeGenerator
(
const
FieldDescriptor
*
field
,
const
Options
&
options
,
...
...
src/google/protobuf/compiler/java/java_field.cc
View file @
9497a657
...
...
@@ -211,8 +211,7 @@ template <>
FieldGeneratorMap
<
ImmutableFieldGenerator
>::
FieldGeneratorMap
(
const
Descriptor
*
descriptor
,
Context
*
context
)
:
descriptor_
(
descriptor
),
field_generators_
(
new
std
::
unique_ptr
<
ImmutableFieldGenerator
>
[
descriptor
->
field_count
()])
{
field_generators_
(
descriptor
->
field_count
())
{
// Construct all the FieldGenerators and assign them bit indices for their
// bit fields.
...
...
@@ -234,8 +233,7 @@ template <>
FieldGeneratorMap
<
ImmutableFieldLiteGenerator
>::
FieldGeneratorMap
(
const
Descriptor
*
descriptor
,
Context
*
context
)
:
descriptor_
(
descriptor
),
field_generators_
(
new
std
::
unique_ptr
<
ImmutableFieldLiteGenerator
>
[
descriptor
->
field_count
()])
{
field_generators_
(
descriptor
->
field_count
())
{
// Construct all the FieldGenerators and assign them bit indices for their
// bit fields.
int
messageBitIndex
=
0
;
...
...
src/google/protobuf/compiler/java/java_field.h
View file @
9497a657
...
...
@@ -138,7 +138,7 @@ class FieldGeneratorMap {
const
Descriptor
*
descriptor_
;
Context
*
context_
;
ClassNameResolver
*
name_resolver_
;
std
::
unique_ptr
<
std
::
unique_ptr
<
FieldGeneratorType
>
[]
>
field_generators_
;
std
::
vector
<
std
::
unique_ptr
<
FieldGeneratorType
>
>
field_generators_
;
GOOGLE_DISALLOW_EVIL_CONSTRUCTORS
(
FieldGeneratorMap
);
};
...
...
src/google/protobuf/compiler/java/java_file.cc
View file @
9497a657
...
...
@@ -186,10 +186,8 @@ FileGenerator::FileGenerator(const FileDescriptor* file, const Options& options,
bool
immutable_api
)
:
file_
(
file
),
java_package_
(
FileJavaPackage
(
file
,
immutable_api
)),
message_generators_
(
new
std
::
unique_ptr
<
MessageGenerator
>
[
file
->
message_type_count
()]),
extension_generators_
(
new
std
::
unique_ptr
<
ExtensionGenerator
>
[
file
->
extension_count
()]),
message_generators_
(
file
->
message_type_count
()),
extension_generators_
(
file
->
extension_count
()),
context_
(
new
Context
(
file
,
options
)),
name_resolver_
(
context_
->
GetNameResolver
()),
options_
(
options
),
...
...
src/google/protobuf/compiler/java/java_file.h
View file @
9497a657
...
...
@@ -98,8 +98,8 @@ class FileGenerator {
string
java_package_
;
string
classname_
;
std
::
unique_ptr
<
std
::
unique_ptr
<
MessageGenerator
>
[]
>
message_generators_
;
std
::
unique_ptr
<
std
::
unique_ptr
<
ExtensionGenerator
>
[]
>
extension_generators_
;
std
::
vector
<
std
::
unique_ptr
<
MessageGenerator
>
>
message_generators_
;
std
::
vector
<
std
::
unique_ptr
<
ExtensionGenerator
>
>
extension_generators_
;
std
::
unique_ptr
<
GeneratorFactory
>
generator_factory_
;
std
::
unique_ptr
<
Context
>
context_
;
ClassNameResolver
*
name_resolver_
;
...
...
src/google/protobuf/compiler/objectivec/objectivec_field.cc
View file @
9497a657
...
...
@@ -410,10 +410,8 @@ bool RepeatedFieldGenerator::RuntimeUsesHasBit(void) const {
FieldGeneratorMap
::
FieldGeneratorMap
(
const
Descriptor
*
descriptor
,
const
Options
&
options
)
:
descriptor_
(
descriptor
),
field_generators_
(
new
std
::
unique_ptr
<
FieldGenerator
>
[
descriptor
->
field_count
()]),
extension_generators_
(
new
std
::
unique_ptr
<
FieldGenerator
>
[
descriptor
->
extension_count
()])
{
field_generators_
(
descriptor
->
field_count
()),
extension_generators_
(
descriptor
->
extension_count
())
{
// Construct all the FieldGenerators.
for
(
int
i
=
0
;
i
<
descriptor
->
field_count
();
i
++
)
{
field_generators_
[
i
].
reset
(
...
...
src/google/protobuf/compiler/objectivec/objectivec_field.h
View file @
9497a657
...
...
@@ -182,8 +182,8 @@ class FieldGeneratorMap {
private
:
const
Descriptor
*
descriptor_
;
std
::
unique_ptr
<
std
::
unique_ptr
<
FieldGenerator
>
[]
>
field_generators_
;
std
::
unique_ptr
<
std
::
unique_ptr
<
FieldGenerator
>
[]
>
extension_generators_
;
std
::
vector
<
std
::
unique_ptr
<
FieldGenerator
>
>
field_generators_
;
std
::
vector
<
std
::
unique_ptr
<
FieldGenerator
>
>
extension_generators_
;
GOOGLE_DISALLOW_EVIL_CONSTRUCTORS
(
FieldGeneratorMap
);
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment