/*
- * Copyright (c) 2015 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2016 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Gesture& Gesture::operator=( const Gesture& rhs )
{
- type = rhs.type;
- state = rhs.state;
- time = rhs.time;
+ if( this != &rhs )
+ {
+ type = rhs.type;
+ state = rhs.state;
+ time = rhs.time;
+ }
return *this;
}