summaryrefslogtreecommitdiff
path: root/src/components/rpc_base/include/rpc_base/rpc_base_inl.h
diff options
context:
space:
mode:
authordtrunov <dtrunov@luxoft.com>2016-12-27 15:17:20 +0200
committerdtrunov <dtrunov@luxoft.com>2016-12-27 16:29:09 +0200
commit9610d3ffbfe2d7b3f00f29f839e7d7fa6af11a3a (patch)
tree2a31db09fad2a9601d4366e8330aae025d75c5e4 /src/components/rpc_base/include/rpc_base/rpc_base_inl.h
parent6fbf1a831b5d9344330b8e972644e4384e309c5b (diff)
downloadsdl_core-9610d3ffbfe2d7b3f00f29f839e7d7fa6af11a3a.tar.gz
Change copy constructor and operator=
Change copy constructor and operator= in order to exclude problem with removing value state during copying integer object
Diffstat (limited to 'src/components/rpc_base/include/rpc_base/rpc_base_inl.h')
-rw-r--r--src/components/rpc_base/include/rpc_base/rpc_base_inl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/rpc_base/include/rpc_base/rpc_base_inl.h b/src/components/rpc_base/include/rpc_base/rpc_base_inl.h
index a9ff484eb0..6dad1b82f5 100644
--- a/src/components/rpc_base/include/rpc_base/rpc_base_inl.h
+++ b/src/components/rpc_base/include/rpc_base/rpc_base_inl.h
@@ -177,7 +177,7 @@ Integer<T, minval, maxval>& Integer<T, minval, maxval>::operator=(
const Integer& new_val) {
this->value_ = new_val.value_;
if (new_val.is_initialized()) {
- this->value_state_ = range_.Includes(new_val.value_) ? kValid : kInvalid;
+ this->value_state_ = new_val.value_state_;
}
return *this;