Index: sandbox/linux/seccomp-bpf/codegen.cc |
diff --git a/sandbox/linux/seccomp-bpf/codegen.cc b/sandbox/linux/seccomp-bpf/codegen.cc |
index 055aa71e11c743690d72866e44be5f8e9e129dcb..df9676017a07a119e2f53eb25bfd676a191781a2 100644 |
--- a/sandbox/linux/seccomp-bpf/codegen.cc |
+++ b/sandbox/linux/seccomp-bpf/codegen.cc |
@@ -145,14 +145,14 @@ size_t CodeGen::Offset(Node target) const { |
// TODO(mdempsky): Move into a general base::Tuple helper library. |
bool CodeGen::MemoKeyLess::operator()(const MemoKey& lhs, |
const MemoKey& rhs) const { |
- if (get<0>(lhs) != get<0>(rhs)) |
- return get<0>(lhs) < get<0>(rhs); |
- if (get<1>(lhs) != get<1>(rhs)) |
- return get<1>(lhs) < get<1>(rhs); |
- if (get<2>(lhs) != get<2>(rhs)) |
- return get<2>(lhs) < get<2>(rhs); |
- if (get<3>(lhs) != get<3>(rhs)) |
- return get<3>(lhs) < get<3>(rhs); |
+ if (lhs.a != rhs.a) |
+ return lhs.a < rhs.a; |
+ if (lhs.b != rhs.b) |
+ return lhs.b < rhs.b; |
+ if (lhs.c != rhs.c) |
+ return lhs.c < rhs.c; |
+ if (lhs.d != rhs.d) |
+ return lhs.d < rhs.d; |
return false; |
} |