diff --git a/src/groupBy/groupBy.cpp b/src/groupBy/groupBy.cpp index 69d9f08a5b63ce12c07b2738bb179ecbb230c56e..f5c69c41081481d8c6496c7da5ca43002506469f 100644 --- a/src/groupBy/groupBy.cpp +++ b/src/groupBy/groupBy.cpp @@ -380,7 +380,7 @@ void ReportSummary(const vector<string> &group, const vector<vector<string> > &d vector<string> result; for( size_t i = 0; i < data.size(); i++ ) { - if (data[i].size() == 0) + if (data[i].empty()) continue; string op = ops[i]; @@ -445,7 +445,7 @@ void ReportSummary(const vector<string> &group, const vector<vector<string> > &d result.push_back(buffer.str()); } } - if (result.size() > 0) { + if (!result.empty()) { for_each(group.begin(), group.end(), TabPrintPost); cout << *result.begin(); for_each(++result.begin(), result.end(), TabPrintPre);