2015-09-08 21:52:34 +00:00
|
|
|
#include "IntDiff.h"
|
|
|
|
|
2015-11-09 21:30:46 +00:00
|
|
|
IntDiff::IntDiff(const DefinitionNode *node, int oldvalue, int newvalue)
|
|
|
|
: DefinitionDiff(node), oldvalue(oldvalue), newvalue(newvalue) {
|
2015-09-08 21:52:34 +00:00
|
|
|
}
|
2015-12-13 19:32:26 +00:00
|
|
|
|
|
|
|
IntDiff::IntDiff(const IntDiff *other, int oldvalue, int newvalue)
|
|
|
|
: DefinitionDiff(other), oldvalue(oldvalue), newvalue(newvalue) {
|
|
|
|
}
|
|
|
|
|
|
|
|
DefinitionDiff *IntDiff::newReversed() const {
|
|
|
|
return new IntDiff(this, newvalue, oldvalue);
|
|
|
|
}
|