no need for this->

master
neingeist 11 years ago
parent 823aeb304f
commit 8bc35cef8e

@ -12,7 +12,7 @@ class mybase {
: ids(ids) {} : ids(ids) {}
virtual void foo() { virtual void foo() {
std::cout << "i'm a mybase! ids: " << this->ids << std::endl; std::cout << "i'm a mybase! ids: " << ids << std::endl;
} }
}; };
@ -24,7 +24,7 @@ class myclass : public mybase {
: mybase(ids) {} : mybase(ids) {}
void foo() { void foo() {
std::cout << "i'm a myclass! ids: " << this->ids << std::endl; std::cout << "i'm a myclass! ids: " << ids << std::endl;
} }
}; };

Loading…
Cancel
Save