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
f87e5b7e
Commit
f87e5b7e
authored
May 24, 2015
by
Bo Yang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix C2385: accessing parent classes' member without specifying is ambiguous.
parent
2e663048
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
4 deletions
+14
-4
.gitignore
.gitignore
+9
-0
map_field_inl.h
src/google/protobuf/map_field_inl.h
+5
-4
No files found.
.gitignore
View file @
f87e5b7e
...
...
@@ -90,3 +90,12 @@ objectivec/ProtocolBuffers_OSX.xcodeproj/project.xcworkspace/xcuserdata/
objectivec/ProtocolBuffers_OSX.xcodeproj/xcuserdata/
objectivec/ProtocolBuffers_iOS.xcodeproj/project.xcworkspace/xcuserdata/
objectivec/ProtocolBuffers_iOS.xcodeproj/xcuserdata/
# Comformance test output
conformance/.libs/
conformance/com/
conformance/conformance-cpp
conformance/conformance-test-runner
conformance/conformance.pb.cc
conformance/conformance.pb.h
conformance/protoc_middleman
src/google/protobuf/map_field_inl.h
View file @
f87e5b7e
...
...
@@ -212,11 +212,11 @@ void
MapField
<
Key
,
T
,
kKeyFieldType
,
kValueFieldType
,
default_enum_value
>::
SyncRepeatedFieldWithMapNoLock
()
const
{
if
(
repeated_field_
==
NULL
)
{
if
(
arena_
==
NULL
)
{
if
(
MapFieldBase
::
arena_
==
NULL
)
{
repeated_field_
=
new
RepeatedPtrField
<
Message
>
();
}
else
{
repeated_field_
=
Arena
::
CreateMessage
<
RepeatedPtrField
<
Message
>
>
(
arena_
);
repeated_field_
=
Arena
::
CreateMessage
<
RepeatedPtrField
<
Message
>
>
(
MapFieldBase
::
arena_
);
}
}
const
Map
<
Key
,
T
>&
map
=
GetInternalMap
();
...
...
@@ -229,7 +229,8 @@ MapField<Key, T, kKeyFieldType, kValueFieldType,
it
!=
map
.
end
();
++
it
)
{
InitDefaultEntryOnce
();
GOOGLE_CHECK
(
default_entry_
!=
NULL
);
EntryType
*
new_entry
=
down_cast
<
EntryType
*>
(
default_entry_
->
New
(
arena_
));
EntryType
*
new_entry
=
down_cast
<
EntryType
*>
(
default_entry_
->
New
(
MapFieldBase
::
arena_
));
repeated_field
->
AddAllocated
(
new_entry
);
(
*
new_entry
->
mutable_key
())
=
it
->
first
;
(
*
new_entry
->
mutable_value
())
=
it
->
second
;
...
...
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