etch-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vei...@apache.org
Subject svn commit: r1578904 - in /etch/trunk/binding-cpp/runtime: include/common/EtchInt32.h include/common/EtchObjectType.h src/main/common/EtchInt32.cpp src/main/common/EtchObjectType.cpp
Date Tue, 18 Mar 2014 13:59:13 GMT
Author: veithm
Date: Tue Mar 18 13:59:13 2014
New Revision: 1578904

URL: http://svn.apache.org/r1578904
Log:
Removing warnings by removing unneeded const keyword

On return of a copy of a primitive datatype like int the const keyword is
not needed and caused warnings on some compilers.

Change-Id: Ifde2367f836478b48f653dce614ac339d704954d

Modified:
    etch/trunk/binding-cpp/runtime/include/common/EtchInt32.h
    etch/trunk/binding-cpp/runtime/include/common/EtchObjectType.h
    etch/trunk/binding-cpp/runtime/src/main/common/EtchInt32.cpp
    etch/trunk/binding-cpp/runtime/src/main/common/EtchObjectType.cpp

Modified: etch/trunk/binding-cpp/runtime/include/common/EtchInt32.h
URL: http://svn.apache.org/viewvc/etch/trunk/binding-cpp/runtime/include/common/EtchInt32.h?rev=1578904&r1=1578903&r2=1578904&view=diff
==============================================================================
--- etch/trunk/binding-cpp/runtime/include/common/EtchInt32.h (original)
+++ etch/trunk/binding-cpp/runtime/include/common/EtchInt32.h Tue Mar 18 13:59:13 2014
@@ -92,7 +92,7 @@ public:
   /**
    * assigns and increments the stored integer value
    */
-  const capu::int32_t operator++(int);
+  capu::int32_t operator++(int);
 
   /**
    * decrement and assigns the stored integer value
@@ -102,7 +102,7 @@ public:
   /**
    * assigns and decrement the stored integer value
    */
-  const capu::int32_t operator--(int);
+  capu::int32_t operator--(int);
 
   /**
    * returns true if two objects are equal

Modified: etch/trunk/binding-cpp/runtime/include/common/EtchObjectType.h
URL: http://svn.apache.org/viewvc/etch/trunk/binding-cpp/runtime/include/common/EtchObjectType.h?rev=1578904&r1=1578903&r2=1578904&view=diff
==============================================================================
--- etch/trunk/binding-cpp/runtime/include/common/EtchObjectType.h (original)
+++ etch/trunk/binding-cpp/runtime/include/common/EtchObjectType.h Tue Mar 18 13:59:13 2014
@@ -120,7 +120,7 @@ public:
    * @return
    */
   template<class T>
-  static const EtchObjectTypeTrait getTypeTrait() {
+  static EtchObjectTypeTrait getTypeTrait() {
     return __Wrapper__<T>::getTypeTrait();
   }
 
@@ -153,7 +153,7 @@ public:
    * @return NONE if this is not a collection type trait
    *         otherwise component type trait of collection such VALUE, POINTER, SMART_POINTER
    */
-  const EtchObjectTypeTrait getObjectComponentTypeTrait() const;
+  EtchObjectTypeTrait getObjectComponentTypeTrait() const;
 
   /**
    * @return true if two type is equal
@@ -174,7 +174,7 @@ private:
       return T::TYPE();
     }
 
-    static const EtchObjectTypeTrait getTypeTrait() {
+    static EtchObjectTypeTrait getTypeTrait() {
       return EtchObjectType::VALUE;
     }
 
@@ -187,7 +187,7 @@ private:
       return T::TYPE();
     }
 
-    static const EtchObjectTypeTrait getTypeTrait() {
+    static EtchObjectTypeTrait getTypeTrait() {
       return EtchObjectType::POINTER;
     }
   };
@@ -199,7 +199,7 @@ private:
       return EtchObjectType::getType<T>();
     }
 
-    static const EtchObjectTypeTrait getTypeTrait() {
+    static EtchObjectTypeTrait getTypeTrait() {
       return EtchObjectType::SMART_POINTER;
     }
   };
@@ -213,7 +213,7 @@ struct EtchObjectType::__Wrapper__<capu:
     return &EtchObjectType::NATIVE_INT32();
   }
 
-  static const EtchObjectTypeTrait getTypeTrait() {
+  static EtchObjectTypeTrait getTypeTrait() {
     return EtchObjectType::VALUE;
   }
 };
@@ -225,7 +225,7 @@ struct EtchObjectType::__Wrapper__<capu:
     return &EtchObjectType::NATIVE_INT16();
   }
 
-  static const EtchObjectTypeTrait getTypeTrait() {
+  static EtchObjectTypeTrait getTypeTrait() {
     return EtchObjectType::VALUE;
   }
 
@@ -238,7 +238,7 @@ struct EtchObjectType::__Wrapper__<capu:
     return &EtchObjectType::NATIVE_INT8();
   }
 
-  static const EtchObjectTypeTrait getTypeTrait() {
+  static EtchObjectTypeTrait getTypeTrait() {
     return EtchObjectType::VALUE;
   }
 };
@@ -250,7 +250,7 @@ struct EtchObjectType::__Wrapper__<capu:
     return &EtchObjectType::NATIVE_INT64();
   }
 
-  static const EtchObjectTypeTrait getTypeTrait() {
+  static EtchObjectTypeTrait getTypeTrait() {
     return EtchObjectType::VALUE;
   }
 };
@@ -262,7 +262,7 @@ struct EtchObjectType::__Wrapper__<capu:
     return &EtchObjectType::NATIVE_FLOAT();
   }
 
-  static const EtchObjectTypeTrait getTypeTrait() {
+  static EtchObjectTypeTrait getTypeTrait() {
     return EtchObjectType::VALUE;
   }
 
@@ -275,7 +275,7 @@ struct EtchObjectType::__Wrapper__<capu:
     return &EtchObjectType::NATIVE_DOUBLE();
   }
 
-  static const EtchObjectTypeTrait getTypeTrait() {
+  static EtchObjectTypeTrait getTypeTrait() {
     return EtchObjectType::VALUE;
   }
 
@@ -288,7 +288,7 @@ struct EtchObjectType::__Wrapper__<capu:
     return &EtchObjectType::NATIVE_BOOL();
   }
 
-  static const EtchObjectTypeTrait getTypeTrait() {
+  static EtchObjectTypeTrait getTypeTrait() {
     return EtchObjectType::VALUE;
   }
 
@@ -301,7 +301,7 @@ struct EtchObjectType::__Wrapper__<capu:
     return &EtchObjectType::NATIVE_INT32();
   }
 
-  static const EtchObjectTypeTrait getTypeTrait() {
+  static EtchObjectTypeTrait getTypeTrait() {
     return EtchObjectType::POINTER;
   }
 
@@ -314,7 +314,7 @@ struct EtchObjectType::__Wrapper__<capu:
     return &EtchObjectType::NATIVE_INT16();
   }
 
-  static const EtchObjectTypeTrait getTypeTrait() {
+  static EtchObjectTypeTrait getTypeTrait() {
     return EtchObjectType::POINTER;
   }
 
@@ -327,7 +327,7 @@ struct EtchObjectType::__Wrapper__<capu:
     return &EtchObjectType::NATIVE_INT8();
   }
 
-  static const EtchObjectTypeTrait getTypeTrait() {
+  static EtchObjectTypeTrait getTypeTrait() {
     return EtchObjectType::POINTER;
   }
 
@@ -340,7 +340,7 @@ struct EtchObjectType::__Wrapper__<capu:
     return &EtchObjectType::NATIVE_INT64();
   }
 
-  static const EtchObjectTypeTrait getTypeTrait() {
+  static EtchObjectTypeTrait getTypeTrait() {
     return EtchObjectType::POINTER;
   }
 
@@ -353,7 +353,7 @@ struct EtchObjectType::__Wrapper__<capu:
     return &EtchObjectType::NATIVE_FLOAT();
   }
 
-  static const EtchObjectTypeTrait getTypeTrait() {
+  static EtchObjectTypeTrait getTypeTrait() {
     return EtchObjectType::POINTER;
   }
 
@@ -366,7 +366,7 @@ struct EtchObjectType::__Wrapper__<capu:
     return &EtchObjectType::NATIVE_DOUBLE();
   }
 
-  static const EtchObjectTypeTrait getTypeTrait() {
+  static EtchObjectTypeTrait getTypeTrait() {
     return EtchObjectType::POINTER;
   }
 
@@ -379,7 +379,7 @@ struct EtchObjectType::__Wrapper__<capu:
     return &EtchObjectType::NATIVE_BOOL();
   }
 
-  static const EtchObjectTypeTrait getTypeTrait() {
+  static EtchObjectTypeTrait getTypeTrait() {
     return EtchObjectType::POINTER;
   }
 
@@ -392,7 +392,7 @@ struct EtchObjectType::__Wrapper__<capu:
     return &EtchObjectType::NATIVE_INT32();
   }
 
-  static const EtchObjectTypeTrait getTypeTrait() {
+  static EtchObjectTypeTrait getTypeTrait() {
     return EtchObjectType::SMART_POINTER;
   }
 };
@@ -404,7 +404,7 @@ struct EtchObjectType::__Wrapper__<capu:
     return &EtchObjectType::NATIVE_INT16();
   }
 
-  static const EtchObjectTypeTrait getTypeTrait() {
+  static EtchObjectTypeTrait getTypeTrait() {
     return EtchObjectType::SMART_POINTER;
   }
 
@@ -417,7 +417,7 @@ struct EtchObjectType::__Wrapper__<capu:
     return &EtchObjectType::NATIVE_INT8();
   }
 
-  static const EtchObjectTypeTrait getTypeTrait() {
+  static EtchObjectTypeTrait getTypeTrait() {
     return EtchObjectType::SMART_POINTER;
   }
 };
@@ -429,7 +429,7 @@ struct EtchObjectType::__Wrapper__<capu:
     return &EtchObjectType::NATIVE_INT64();
   }
 
-  static const EtchObjectTypeTrait getTypeTrait() {
+  static EtchObjectTypeTrait getTypeTrait() {
     return EtchObjectType::SMART_POINTER;
   }
 };
@@ -441,7 +441,7 @@ struct EtchObjectType::__Wrapper__<capu:
     return &EtchObjectType::NATIVE_FLOAT();
   }
 
-  static const EtchObjectTypeTrait getTypeTrait() {
+  static EtchObjectTypeTrait getTypeTrait() {
     return EtchObjectType::SMART_POINTER;
   }
 
@@ -454,7 +454,7 @@ struct EtchObjectType::__Wrapper__<capu:
     return &EtchObjectType::NATIVE_DOUBLE();
   }
 
-  static const EtchObjectTypeTrait getTypeTrait() {
+  static EtchObjectTypeTrait getTypeTrait() {
     return EtchObjectType::SMART_POINTER;
   }
 
@@ -467,7 +467,7 @@ struct EtchObjectType::__Wrapper__<capu:
     return &EtchObjectType::NATIVE_BOOL();
   }
 
-  static const EtchObjectTypeTrait getTypeTrait() {
+  static EtchObjectTypeTrait getTypeTrait() {
     return EtchObjectType::SMART_POINTER;
   }
 

Modified: etch/trunk/binding-cpp/runtime/src/main/common/EtchInt32.cpp
URL: http://svn.apache.org/viewvc/etch/trunk/binding-cpp/runtime/src/main/common/EtchInt32.cpp?rev=1578904&r1=1578903&r2=1578904&view=diff
==============================================================================
--- etch/trunk/binding-cpp/runtime/src/main/common/EtchInt32.cpp (original)
+++ etch/trunk/binding-cpp/runtime/src/main/common/EtchInt32.cpp Tue Mar 18 13:59:13 2014
@@ -86,7 +86,7 @@ capu::int32_t& EtchInt32::operator++() /
   ++mValue;
   return mValue;
 }
-const capu::int32_t EtchInt32::operator++(int) //post increment
+capu::int32_t EtchInt32::operator++(int) //post increment
 {
   capu::int32_t tmp(mValue);
   ++mValue;
@@ -99,7 +99,7 @@ capu::int32_t& EtchInt32::operator--() /
   return mValue;
 }
 
-const capu::int32_t EtchInt32::operator--(int) //post increment
+capu::int32_t EtchInt32::operator--(int) //post increment
 {
   capu::int32_t tmp(mValue);
   --mValue;

Modified: etch/trunk/binding-cpp/runtime/src/main/common/EtchObjectType.cpp
URL: http://svn.apache.org/viewvc/etch/trunk/binding-cpp/runtime/src/main/common/EtchObjectType.cpp?rev=1578904&r1=1578903&r2=1578904&view=diff
==============================================================================
--- etch/trunk/binding-cpp/runtime/src/main/common/EtchObjectType.cpp (original)
+++ etch/trunk/binding-cpp/runtime/src/main/common/EtchObjectType.cpp Tue Mar 18 13:59:13
2014
@@ -63,7 +63,7 @@ const EtchObjectType* EtchObjectType::ge
   return mComponentType;
 }
 
-const EtchObjectType::EtchObjectTypeTrait EtchObjectType::getObjectComponentTypeTrait() const
{
+EtchObjectType::EtchObjectTypeTrait EtchObjectType::getObjectComponentTypeTrait() const {
   return mComponentTypeTrait;
 }
 



Mime
View raw message