Skip to content

Commit

Permalink
Remove newlines that introduce extra whitespace.
Browse files Browse the repository at this point in the history
Each call to these functions is already following by a "\n" printed by
the caller.

This closes booyah#15.
  • Loading branch information
Jon Parise committed Nov 15, 2011
1 parent eef4ada commit c8c5f46
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/compiler/objc_enum_field.cc
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ namespace google { namespace protobuf { namespace compiler { namespace objective


void RepeatedEnumFieldGenerator::GenerateIsEqualCodeSource(io::Printer* printer) const {
printer->Print(variables_, "[self.$list_name$ isEqualToArray:otherMessage.$list_name$] &&\n");
printer->Print(variables_, "[self.$list_name$ isEqualToArray:otherMessage.$list_name$] &&");
}


Expand Down
4 changes: 2 additions & 2 deletions src/compiler/objc_message_field.cc
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ namespace google { namespace protobuf { namespace compiler { namespace objective
void MessageFieldGenerator::GenerateIsEqualCodeSource(io::Printer* printer) const {
printer->Print(variables_,
"self.has$capitalized_name$ == otherMessage.has$capitalized_name$ &&\n"
"(!self.has$capitalized_name$ || [self.$name$ isEqual:otherMessage.$name$]) &&\n");
"(!self.has$capitalized_name$ || [self.$name$ isEqual:otherMessage.$name$]) &&");
}


Expand Down Expand Up @@ -448,7 +448,7 @@ namespace google { namespace protobuf { namespace compiler { namespace objective
}

void RepeatedMessageFieldGenerator::GenerateIsEqualCodeSource(io::Printer* printer) const {
printer->Print(variables_, "[self.$list_name$ isEqualToArray:otherMessage.$list_name$] &&\n");
printer->Print(variables_, "[self.$list_name$ isEqualToArray:otherMessage.$list_name$] &&");
}

void RepeatedMessageFieldGenerator::GenerateHashCodeSource(io::Printer* printer) const {
Expand Down
6 changes: 3 additions & 3 deletions src/compiler/objc_primitive_field.cc
Original file line number Diff line number Diff line change
Expand Up @@ -404,9 +404,9 @@ namespace google { namespace protobuf { namespace compiler { namespace objective
"self.has$capitalized_name$ == otherMessage.has$capitalized_name$ &&\n"
"(!self.has$capitalized_name$ || ");
if (ReturnsPrimitiveType(descriptor_)) {
printer->Print(variables_, "self.$name$ == otherMessage.$name$) &&\n");
printer->Print(variables_, "self.$name$ == otherMessage.$name$) &&");
} else {
printer->Print(variables_, "[self.$name$ isEqual:otherMessage.$name$]) &&\n");
printer->Print(variables_, "[self.$name$ isEqual:otherMessage.$name$]) &&");
}
}

Expand Down Expand Up @@ -663,7 +663,7 @@ namespace google { namespace protobuf { namespace compiler { namespace objective

void RepeatedPrimitiveFieldGenerator::GenerateIsEqualCodeSource(io::Printer* printer) const {
printer->Print(variables_,
"[self.$list_name$ isEqualToArray:otherMessage.$list_name$] &&\n");
"[self.$list_name$ isEqualToArray:otherMessage.$list_name$] &&");
}


Expand Down

0 comments on commit c8c5f46

Please sign in to comment.