--data shouldn't modify the underlying item

This commit is contained in:
John Wiegley 2009-11-12 18:23:22 -05:00
parent ef3adb5fe0
commit e35394a70d
2 changed files with 1 additions and 7 deletions

View file

@ -710,7 +710,7 @@ void transfer_details::operator()(post_t& post)
switch (which_element) {
case SET_DATE:
xact.set_date(substitute.to_date());
temp.xdata().date = substitute.to_date();
break;
case SET_ACCOUNT: {

View file

@ -172,12 +172,6 @@ public:
virtual optional<date_t> effective_date() const {
return _date_eff;
}
virtual void set_date(const date_t& date) {
if (use_effective_date)
_date_eff = date;
else
_date = date;
}
void set_state(state_t new_state) {
_state = new_state;