Index: ipc/ipc_message_utils.h |
diff --git a/ipc/ipc_message_utils.h b/ipc/ipc_message_utils.h |
index 17941aa0b00e900a9e91ed105c21849664ec9a91..9c1752de4d1219224645b7b3fa6a6dbfa8a57e2d 100644 |
--- a/ipc/ipc_message_utils.h |
+++ b/ipc/ipc_message_utils.h |
@@ -413,7 +413,7 @@ template <> |
struct ParamTraits<std::vector<unsigned char> > { |
typedef std::vector<unsigned char> param_type; |
static void Write(Message* m, const param_type& p) { |
- if (p.size() == 0) { |
+ if (p.empty()) { |
m->WriteData(NULL, 0); |
} else { |
m->WriteData(reinterpret_cast<const char*>(&p.front()), |
@@ -439,7 +439,7 @@ template <> |
struct ParamTraits<std::vector<char> > { |
typedef std::vector<char> param_type; |
static void Write(Message* m, const param_type& p) { |
- if (p.size() == 0) { |
+ if (p.empty()) { |
m->WriteData(NULL, 0); |
} else { |
m->WriteData(&p.front(), static_cast<int>(p.size())); |