Attribute bound setting functions always overwrite the bound values 69/142669/2
authorMu-Woong Lee <muwoong.lee@samsung.com>
Mon, 7 Aug 2017 04:04:41 +0000 (13:04 +0900)
committerMu-Woong Lee <muwoong.lee@samsung.com>
Mon, 7 Aug 2017 04:05:53 +0000 (04:05 +0000)
Change-Id: Ie27b733a4114703f6ef75a375479bc4c2cea3423
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
src/shared/Attribute.cpp

index 2cfb7b0..2f10e82 100644 (file)
@@ -15,7 +15,6 @@
  */
 
 #include <climits>
-#include <algorithm>
 #include <json/json.h>
 #include "Attribute.h"
 
@@ -116,22 +115,22 @@ const std::set<int>& IntegerAttribute::getTargets()
 
 void IntegerAttribute::setClosedLowerBound(int bound)
 {
-       __closedLowerBound = std::max(__closedLowerBound, bound);
+       __closedLowerBound = bound;
 }
 
 void IntegerAttribute::setClosedUpperBound(int bound)
 {
-       __closedUpperBound = std::min(__closedUpperBound, bound);
+       __closedUpperBound = bound;
 }
 
 void IntegerAttribute::setOpenLowerBound(int bound)
 {
-       __openLowerBound = std::max(__openLowerBound, bound);
+       __openLowerBound = bound;
 }
 
 void IntegerAttribute::setOpenUpperBound(int bound)
 {
-       __openUpperBound = std::min(__openUpperBound, bound);
+       __openUpperBound = bound;
 }
 
 bool IntegerAttribute::addTarget(int target)