[apps] Rule of 5 (2)

Change-Id: I62eebed201a9f61b3f89233fda4e714f0bab0db7
This commit is contained in:
Émilie Feral
2017-05-05 16:37:37 +02:00
parent 9564ddcc8c
commit 0dfbf3ade3
7 changed files with 43 additions and 11 deletions

View File

@@ -62,6 +62,17 @@ Sequence::~Sequence() {
}
}
Sequence& Sequence::operator=(const Sequence& other) {
// Self-assignment is benign
Function::operator=(other);
setType(other.m_type);
setFirstInitialConditionContent(other.m_firstInitialConditionText);
setSecondInitialConditionContent(other.m_secondInitialConditionText);
m_indexBuffer[0] = other.m_indexBuffer[0];
m_indexBuffer[1] = other.m_indexBuffer[1];
return *this;
}
const char * Sequence::firstInitialConditionText() {
return m_firstInitialConditionText;
}