Commit f4b6e4a5 authored by dmaclach's avatar dmaclach Committed by Thomas Van Lenten

Clean up use of size() > 0 to !empty()

parent 836d81a8
...@@ -424,13 +424,13 @@ void FileGenerator::GenerateSource(io::Printer *printer) { ...@@ -424,13 +424,13 @@ void FileGenerator::GenerateSource(io::Printer *printer) {
printer->Print( printer->Print(
"#pragma clang diagnostic ignored \"-Wdirect-ivar-access\"\n"); "#pragma clang diagnostic ignored \"-Wdirect-ivar-access\"\n");
} }
if (fwd_decls.size() > 0) { if (!fwd_decls.empty()) {
printer->Print( printer->Print(
"#pragma clang diagnostic ignored \"-Wdollar-in-identifier-extension\"\n"); "#pragma clang diagnostic ignored \"-Wdollar-in-identifier-extension\"\n");
} }
printer->Print( printer->Print(
"\n"); "\n");
if (fwd_decls.size() > 0) { if (!fwd_decls.empty()) {
printer->Print( printer->Print(
"#pragma mark - Objective C Class references\n" "#pragma mark - Objective C Class references\n"
"// This somewhat arcane code forces linkage of classes from static archives by\n" "// This somewhat arcane code forces linkage of classes from static archives by\n"
...@@ -442,7 +442,7 @@ void FileGenerator::GenerateSource(io::Printer *printer) { ...@@ -442,7 +442,7 @@ void FileGenerator::GenerateSource(io::Printer *printer) {
for (const auto& i : fwd_decls) { for (const auto& i : fwd_decls) {
printer->Print("$value$\n", "value", i); printer->Print("$value$\n", "value", i);
} }
if (fwd_decls.size() > 0) { if (!fwd_decls.empty()) {
printer->Print("\n"); printer->Print("\n");
} }
printer->Print( printer->Print(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment