eitd: use check empty() instead of size() or length()

This commit is contained in:
Jacek Jendrzej
2015-01-01 19:02:41 +01:00
parent c89e35cbe1
commit 8e4af0b619
5 changed files with 23 additions and 23 deletions

View File

@@ -426,7 +426,7 @@ void *insertEventsfromFile(void * data)
node = node->xmlNextNode;
}
if (contentClassification.size()) {
if (!contentClassification.empty()) {
ssize_t off = e.classifications.reserve(2 * contentClassification.size());
if (off > -1)
for (unsigned i = 0; i < contentClassification.size(); i++)