/*
- * Copyright (c) 2014 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.
TapGesture& TapGesture::operator=( const TapGesture& rhs )
{
- Gesture::operator=(rhs);
- numberOfTaps = rhs.numberOfTaps;
- numberOfTouches = rhs.numberOfTouches;
- screenPoint = rhs.screenPoint;
- localPoint = rhs.localPoint;
+ if( this != &rhs )
+ {
+ Gesture::operator=(rhs);
+ numberOfTaps = rhs.numberOfTaps;
+ numberOfTouches = rhs.numberOfTouches;
+ screenPoint = rhs.screenPoint;
+ localPoint = rhs.localPoint;
+ }
return *this;
}