core: Added move operator for Time type

This commit is contained in:
Natale Patriciello
2018-02-25 11:36:01 +01:00
parent a7b21e30dc
commit 230e12df61

View File

@@ -124,7 +124,7 @@ public:
* Assignment operator
* \param [in] o Time to assign.
* \return The Time.
*/
*/
inline Time & operator = (const Time & o)
{
m_data = o.m_data;
@@ -136,20 +136,34 @@ public:
{
if (g_markingTimes)
{
Mark (this);
Mark (this);
}
}
/**
* Copy constructor
*
* \param [in] o Time to copy
*/
*/
inline Time(const Time & o)
: m_data (o.m_data)
{
if (g_markingTimes)
{
Mark (this);
Mark (this);
}
}
/**
* \brief Move constructor
*
* \param [in] o Time from which take the data
*/
Time (Time &&o)
: m_data (o.m_data)
{
if (g_markingTimes)
{
Mark (this);
}
}
/**