Skip to content

Commit 029dc2f

Browse files
committed
Use empty() instead checking size() == 0
1 parent 0b664c6 commit 029dc2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/PrintAsClang/DeclAndTypePrinter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ class DeclAndTypePrinter::Implementation
404404
}
405405
os << " };\n"; // enum class cases' closing bracket
406406

407-
if (elementTagMapping.size() == 0) {
407+
if (elementTagMapping.empty()) {
408408
os << "\n";
409409
return;
410410
}

0 commit comments

Comments
 (0)