Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(462)

Unified Diff: chrome/common/unix_domain_socket_posix.cc

Issue 6602049: Pure pedantry: Replace all ".size() == 0" with ".empty()". (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/common/unix_domain_socket_posix.cc
diff --git a/chrome/common/unix_domain_socket_posix.cc b/chrome/common/unix_domain_socket_posix.cc
index 31f0135e80d9429494ff376a71b0d668acbe6f81..7621b7e654d3cdd992160c57d89a1720c9b4c1ee 100644
--- a/chrome/common/unix_domain_socket_posix.cc
+++ b/chrome/common/unix_domain_socket_posix.cc
@@ -139,7 +139,7 @@ ssize_t UnixDomainSocket::SendRecvMsg(int fd,
}
if (result_fd) {
- if (fd_vector.size() == 0) {
+ if (fd_vector.empty()) {
Peter Kasting 2011/03/02 00:02:42 Nit: *result_fd = fd_vector.empty() ? -1 : fd
*result_fd = -1;
} else {
*result_fd = fd_vector[0];

Powered by Google App Engine
This is Rietveld 408576698