Use the property system for our components

This commit is contained in:
Olivier Goffart 2020-05-19 15:10:02 +02:00
parent 8ec6fd5237
commit f4bfc3a5b4
5 changed files with 35 additions and 27 deletions

View file

@ -17,9 +17,10 @@ struct Property
Property(Property&&) = delete;
Property &operator=(const Property&) = delete;
/* Should it be implicit?
void operator=(const T &value) {
set(value);
}
}*/
void set(const T &value) const {
this->value = value;