blob: 0203bc1ed4e7cde1ee12b80a0ebc4253a3eb4508 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
diff -Nur enigma-0.81-orig/src/object_mixins.hh enigma-0.81/src/object_mixins.hh
--- src/object_mixins.hh 2003-07-12 12:04:47.000000000 +0200
+++ src/object_mixins.hh 2004-11-11 00:05:24.000000000 +0100
@@ -80,14 +80,14 @@
template <class T>
class OnOffBase : public T {
protected:
- OnOffBase(const char *kind) : T(kind) { set_attrib("on", 0.0); }
+ OnOffBase(const char *kind) : T(kind) { this->set_attrib("on", 0.0); }
- bool is_on() const { return int_attrib("on") == 1; }
+ bool is_on() const { return this->int_attrib("on") == 1; }
void set_on(bool newon) {
if (newon != is_on()) {
- set_attrib("on", Value(newon));
- init_model();
+ this->set_attrib("on", Value(newon));
+ this->init_model();
notify_onoff(newon);
}
}
|