Fix Prevent Issue - Caused by comparing unsigned int to >= 0, will never be less...
authorJulien Heanley <j.heanley@partner.samsung.com>
Tue, 10 Jun 2014 09:11:01 +0000 (10:11 +0100)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Tue, 10 Jun 2014 16:02:29 +0000 (17:02 +0100)
Change-Id: Id07f2a09cfa9cf6307f1af8a60cfd28603b098d4
Signed-off-by: Julien Heanley <j.heanley@partner.samsung.com>
adaptors/base/environment-options.cpp
adaptors/base/environment-options.h

index 9fe6b23..3256751 100644 (file)
@@ -85,7 +85,7 @@ unsigned int EnvironmentOptions::GetPanGestureLoggingLevel() const
   return mPanGestureLoggingLevel;
 }
 
-unsigned int EnvironmentOptions::GetPanGestureSmoothingMode() const
+int EnvironmentOptions::GetPanGestureSmoothingMode() const
 {
   return mPanGesturePredictionMode;
 }
index 2cd16a0..ec865e4 100644 (file)
@@ -90,9 +90,9 @@ public:
   unsigned int GetPanGestureLoggingLevel() const;
 
   /**
-   * @return pan-gesture smoothing mode ( 0 == no smoothing )
+   * @return pan-gesture smoothing mode ( -1 means not set so no smoothing, 0 = no smoothing )
    */
-  unsigned int GetPanGestureSmoothingMode() const;
+  int GetPanGestureSmoothingMode() const;
 
   /**
    * @return pan-gesture prediction amount