Skip to content

Commit

Permalink
Restyled by clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
restyled-commits committed Aug 30, 2021
1 parent 8e5d100 commit 49fb3fe
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions src/app/ReadPrepareParams.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,37 +40,37 @@ struct ReadPrepareParams
uint16_t mMaxIntervalSeconds = 0;

ReadPrepareParams() {}
ReadPrepareParams(ReadPrepareParams&& other)
ReadPrepareParams(ReadPrepareParams && other)
{
mSessionHandle = other.mSessionHandle;
mpEventPathParamsList = other.mpEventPathParamsList;
mEventPathParamsListSize = other.mEventPathParamsListSize;
mpAttributePathParamsList = other.mpAttributePathParamsList;
mAttributePathParamsListSize = other.mAttributePathParamsListSize;
mEventNumber = other.mEventNumber;
mMinIntervalSeconds = other.mMinIntervalSeconds;
mMaxIntervalSeconds = other.mMaxIntervalSeconds;
mTimeout = other.mTimeout;
mSessionHandle = other.mSessionHandle;
mpEventPathParamsList = other.mpEventPathParamsList;
mEventPathParamsListSize = other.mEventPathParamsListSize;
mpAttributePathParamsList = other.mpAttributePathParamsList;
mAttributePathParamsListSize = other.mAttributePathParamsListSize;
mEventNumber = other.mEventNumber;
mMinIntervalSeconds = other.mMinIntervalSeconds;
mMaxIntervalSeconds = other.mMaxIntervalSeconds;
mTimeout = other.mTimeout;
other.mpEventPathParamsList = nullptr;
other.mEventPathParamsListSize = 0;
other.mpAttributePathParamsList = nullptr;
other.mAttributePathParamsListSize = 0;
}

ReadPrepareParams& operator=(ReadPrepareParams&& other)
ReadPrepareParams & operator=(ReadPrepareParams && other)
{
if (&other == this)
return *this;

mSessionHandle = other.mSessionHandle;
mpEventPathParamsList = other.mpEventPathParamsList;
mEventPathParamsListSize = other.mEventPathParamsListSize;
mpAttributePathParamsList = other.mpAttributePathParamsList;
mAttributePathParamsListSize = other.mAttributePathParamsListSize;
mEventNumber = other.mEventNumber;
mMinIntervalSeconds = other.mMinIntervalSeconds;
mMaxIntervalSeconds = other.mMaxIntervalSeconds;
mTimeout = other.mTimeout;
mSessionHandle = other.mSessionHandle;
mpEventPathParamsList = other.mpEventPathParamsList;
mEventPathParamsListSize = other.mEventPathParamsListSize;
mpAttributePathParamsList = other.mpAttributePathParamsList;
mAttributePathParamsListSize = other.mAttributePathParamsListSize;
mEventNumber = other.mEventNumber;
mMinIntervalSeconds = other.mMinIntervalSeconds;
mMaxIntervalSeconds = other.mMaxIntervalSeconds;
mTimeout = other.mTimeout;
other.mpEventPathParamsList = nullptr;
other.mEventPathParamsListSize = 0;
other.mpAttributePathParamsList = nullptr;
Expand Down

0 comments on commit 49fb3fe

Please sign in to comment.