Przeglądaj źródła

Introduced naming convention in Integer class

Patrick 4 lat temu
rodzic
commit
9514f9fdc6
2 zmienionych plików z 6 dodań i 6 usunięć
  1. 4 4
      source/boxing/Integer.cpp
  2. 2 2
      source/boxing/Integer.hpp

+ 4 - 4
source/boxing/Integer.cpp

@@ -217,9 +217,9 @@ bool ls_std::Integer::operator&&(int _value) const
   return this->value && _value;
 }
 
-bool ls_std::Integer::operator&&(bool expression) const
+bool ls_std::Integer::operator&&(bool _expression) const
 {
-  return this->value && expression;
+  return this->value && _expression;
 }
 
 bool ls_std::Integer::operator||(const Integer &_integer) const
@@ -232,9 +232,9 @@ bool ls_std::Integer::operator||(int _value) const
   return this->value || _value;
 }
 
-bool ls_std::Integer::operator||(bool expression) const
+bool ls_std::Integer::operator||(bool _expression) const
 {
-  return this->value || expression;
+  return this->value || _expression;
 }
 
 void ls_std::Integer::operator++()

+ 2 - 2
source/boxing/Integer.hpp

@@ -90,10 +90,10 @@ namespace ls_std {
 
       bool operator&&(const Integer& _integer) const;
       bool operator&&(int _value) const;
-      bool operator&&(bool expression) const;
+      bool operator&&(bool _expression) const;
       bool operator||(const Integer& _integer) const;
       bool operator||(int _value) const;
-      bool operator||(bool expression) const;
+      bool operator||(bool _expression) const;
 
       // increment / decrement operator