[llvm] r183354 - Rename operator== parameter to `RHS`.
Sean Silva
silvas at purdue.edu
Wed Jun 5 16:58:14 PDT 2013
Author: silvas
Date: Wed Jun 5 18:58:14 2013
New Revision: 183354
URL: http://llvm.org/viewvc/llvm-project?rev=183354&view=rev
Log:
Rename operator== parameter to `RHS`.
The previous name `Ref` is overly generic.
Modified:
llvm/trunk/include/llvm/Object/YAML.h
Modified: llvm/trunk/include/llvm/Object/YAML.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Object/YAML.h?rev=183354&r1=183353&r2=183354&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Object/YAML.h (original)
+++ llvm/trunk/include/llvm/Object/YAML.h Wed Jun 5 18:58:14 2013
@@ -43,12 +43,12 @@ public:
return Data.size() / 2;
return Data.size();
}
- bool operator==(const BinaryRef &Ref) {
+ bool operator==(const BinaryRef &RHS) {
// Special case for default constructed BinaryRef.
- if (Ref.Data.empty() && Data.empty())
+ if (RHS.Data.empty() && Data.empty())
return true;
- return Ref.DataIsHexString == DataIsHexString && Ref.Data == Data;
+ return RHS.DataIsHexString == DataIsHexString && RHS.Data == Data;
}
/// \brief Write the contents (regardless of whether it is binary or a
/// hex string) as binary to the given raw_ostream.
More information about the llvm-commits
mailing list