Forráskód Böngészése

HdfAttribute: consistent argument names (clang-tidy readability-inconsistent-declaration-parameter-name)

Fabian Peter Hammerle 6 éve
szülő
commit
74d13542f8
2 módosított fájl, 4 hozzáadás és 4 törlés
  1. 2 2
      include/hdf4cpp/HdfAttribute.h
  2. 2 2
      lib/HdfAttribute.cpp

+ 2 - 2
include/hdf4cpp/HdfAttribute.h

@@ -89,9 +89,9 @@ class HdfAttribute : public HdfObject {
 
   public:
     HdfAttribute(const HdfAttribute &) = delete;
-    HdfAttribute(HdfAttribute &&attr);
+    HdfAttribute(HdfAttribute &&other);
     HdfAttribute &operator=(const HdfAttribute &attribute) = delete;
-    HdfAttribute &operator=(HdfAttribute &&attribute);
+    HdfAttribute &operator=(HdfAttribute &&other);
     /// \returns the number of elements of the attribute data
     int32 size() const;
 

+ 2 - 2
lib/HdfAttribute.cpp

@@ -88,8 +88,8 @@ hdf4cpp::HdfAttribute::HdfAttribute(HdfAttribute &&other)
     : HdfObject(other.getType(), other.getClassType(), std::move(other.chain))
     , attribute(std::move(other.attribute)) {
 }
-hdf4cpp::HdfAttribute &hdf4cpp::HdfAttribute::operator=(HdfAttribute &&attr) {
-    attribute = std::move(attr.attribute);
+hdf4cpp::HdfAttribute &hdf4cpp::HdfAttribute::operator=(HdfAttribute &&other) {
+    attribute = std::move(other.attribute);
     setType(attribute->getType());
     setClassType(attribute->getClassType());
     return *this;