summaryrefslogtreecommitdiffstats
path: root/libcxx/test/utilities/optional
diff options
context:
space:
mode:
authorMarshall Clow <mclow.lists@gmail.com>2013-10-07 02:37:18 +0000
committerMarshall Clow <mclow.lists@gmail.com>2013-10-07 02:37:18 +0000
commit4f44079a2ca1467d0d6a0bb053a338a6b6e795d6 (patch)
tree7a8c6c331232066bb7d7e53425d4f1918909b136 /libcxx/test/utilities/optional
parent61eae2e30c71a10d71cff5463d7c6a5b9a67f64c (diff)
downloadbcm5719-llvm-4f44079a2ca1467d0d6a0bb053a338a6b6e795d6.tar.gz
bcm5719-llvm-4f44079a2ca1467d0d6a0bb053a338a6b6e795d6.zip
Apparently, I don't know the difference between 'left' and 'right'. Swap parameters named 'lhs' and 'rhs' so that they correctly refer to the 'left hand side' and 'right hand side' of comparisons. No functionality change. Thanks to Arthur O'Dwyer for pointing this out to me.
llvm-svn: 192080
Diffstat (limited to 'libcxx/test/utilities/optional')
-rw-r--r--libcxx/test/utilities/optional/optional.comp_with_t/equal.pass.cpp4
-rw-r--r--libcxx/test/utilities/optional/optional.comp_with_t/less_than.pass.cpp4
-rw-r--r--libcxx/test/utilities/optional/optional.relops/equal.pass.cpp4
-rw-r--r--libcxx/test/utilities/optional/optional.relops/less_than.pass.cpp4
4 files changed, 8 insertions, 8 deletions
diff --git a/libcxx/test/utilities/optional/optional.comp_with_t/equal.pass.cpp b/libcxx/test/utilities/optional/optional.comp_with_t/equal.pass.cpp
index 81150ad2c5a..e833b22a386 100644
--- a/libcxx/test/utilities/optional/optional.comp_with_t/equal.pass.cpp
+++ b/libcxx/test/utilities/optional/optional.comp_with_t/equal.pass.cpp
@@ -23,8 +23,8 @@ struct X
constexpr X(int i) : i_(i) {}
};
-constexpr bool operator == ( const X &rhs, const X &lhs )
- { return rhs.i_ == lhs.i_ ; }
+constexpr bool operator == ( const X &lhs, const X &rhs )
+ { return lhs.i_ == rhs.i_ ; }
#endif
diff --git a/libcxx/test/utilities/optional/optional.comp_with_t/less_than.pass.cpp b/libcxx/test/utilities/optional/optional.comp_with_t/less_than.pass.cpp
index c71c8cc91d9..e8bb1dcda19 100644
--- a/libcxx/test/utilities/optional/optional.comp_with_t/less_than.pass.cpp
+++ b/libcxx/test/utilities/optional/optional.comp_with_t/less_than.pass.cpp
@@ -23,8 +23,8 @@ struct X
constexpr X(int i) : i_(i) {}
};
-constexpr bool operator < ( const X &rhs, const X &lhs )
- { return rhs.i_ < lhs.i_ ; }
+constexpr bool operator < ( const X &lhs, const X &rhs )
+ { return lhs.i_ < rhs.i_ ; }
#endif
diff --git a/libcxx/test/utilities/optional/optional.relops/equal.pass.cpp b/libcxx/test/utilities/optional/optional.relops/equal.pass.cpp
index a600d07ecbe..3bbbb4e58b4 100644
--- a/libcxx/test/utilities/optional/optional.relops/equal.pass.cpp
+++ b/libcxx/test/utilities/optional/optional.relops/equal.pass.cpp
@@ -24,8 +24,8 @@ struct X
constexpr X(int i) : i_(i) {}
};
-constexpr bool operator == ( const X &rhs, const X &lhs )
- { return rhs.i_ == lhs.i_ ; }
+constexpr bool operator == ( const X &lhs, const X &rhs )
+ { return lhs.i_ == rhs.i_ ; }
#endif
diff --git a/libcxx/test/utilities/optional/optional.relops/less_than.pass.cpp b/libcxx/test/utilities/optional/optional.relops/less_than.pass.cpp
index 6bcb30466b8..515ca9caea7 100644
--- a/libcxx/test/utilities/optional/optional.relops/less_than.pass.cpp
+++ b/libcxx/test/utilities/optional/optional.relops/less_than.pass.cpp
@@ -22,8 +22,8 @@ struct X
constexpr X(int i) : i_(i) {}
};
-constexpr bool operator < ( const X &rhs, const X &lhs )
- { return rhs.i_ < lhs.i_ ; }
+constexpr bool operator < ( const X &lhs, const X &rhs )
+ { return lhs.i_ < rhs.i_ ; }
#endif
OpenPOWER on IntegriCloud