Rename operator== parameter to `RHS`.
authorSean Silva <silvas@purdue.edu>
Wed, 5 Jun 2013 23:58:14 +0000 (23:58 +0000)
committerSean Silva <silvas@purdue.edu>
Wed, 5 Jun 2013 23:58:14 +0000 (23:58 +0000)
The previous name `Ref` is overly generic.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183354 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Object/YAML.h

index 7f59dd1cbc8bd12fc4392be10b8ecdf16f0ac449..44af45c808cc231a2aa6a2fab317a4068dc4f3cd 100644 (file)
@@ -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.