diff options
author | unknown <teboring@TEBORING1-W.ad.corp.google.com> | 2015-05-27 11:45:32 -0700 |
---|---|---|
committer | Bo Yang <teboring@google.com> | 2015-05-27 17:33:10 -0700 |
commit | ca1c252923021306b7fbc488d33f6a6a89df59cf (patch) | |
tree | 441c20dd9dff539e645f3dc29c697efb632e0d34 /src/google/protobuf/compiler/objectivec | |
parent | b11d6fe515873591907bcce592ed86757c3d7cf3 (diff) | |
download | protobuf-ca1c252923021306b7fbc488d33f6a6a89df59cf.tar.gz protobuf-ca1c252923021306b7fbc488d33f6a6a89df59cf.tar.bz2 protobuf-ca1c252923021306b7fbc488d33f6a6a89df59cf.zip |
Fixes on visual studio 2008
Diffstat (limited to 'src/google/protobuf/compiler/objectivec')
-rw-r--r-- | src/google/protobuf/compiler/objectivec/objectivec_field.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/google/protobuf/compiler/objectivec/objectivec_field.cc b/src/google/protobuf/compiler/objectivec/objectivec_field.cc index ee5253a5..c5f05653 100644 --- a/src/google/protobuf/compiler/objectivec/objectivec_field.cc +++ b/src/google/protobuf/compiler/objectivec/objectivec_field.cc @@ -256,7 +256,7 @@ void FieldGenerator::GenerateFieldDescription( // " .typeSpecific.value* = [something]," GenerateFieldDescriptionTypeSpecific(printer); - const string& field_options(variables_.at("fieldoptions")); + const string& field_options(variables_.find("fieldoptions")->second); if (field_options.empty()) { printer->Print(" .fieldOptions = NULL,\n"); } else { @@ -379,7 +379,7 @@ void ObjCObjFieldGenerator::GeneratePropertyDeclaration( printer->Print( variables_, "@property(nonatomic, readwrite, $property_storage_attribute$) $property_type$ *$name$$storage_attribute$;\n"); - if (IsInitName(variables_.at("name"))) { + if (IsInitName(variables_.find("name")->second)) { // If property name starts with init we need to annotate it to get past ARC. // http://stackoverflow.com/questions/18723226/how-do-i-annotate-an-objective-c-property-with-an-objc-method-family/18723227#18723227 printer->Print(variables_, @@ -426,7 +426,7 @@ void RepeatedFieldGenerator::GeneratePropertyDeclaration( "$comments$" "$array_comment$" "@property(nonatomic, readwrite, strong) $array_storage_type$ *$name$$storage_attribute$;\n"); - if (IsInitName(variables_.at("name"))) { + if (IsInitName(variables_.find("name")->second)) { // If property name starts with init we need to annotate it to get past ARC. // http://stackoverflow.com/questions/18723226/how-do-i-annotate-an-objective-c-property-with-an-objc-method-family/18723227#18723227 printer->Print(variables_, |