SurajSharma90 / SFML_RPG

RPG game made in SFML using C++
191 stars 36 forks source link

Why "this" pointer in the every method? #4

Closed Steindvart closed 4 years ago

Steindvart commented 4 years ago

Why do you use this pointer in every method, when how is it implicit and instead:

this->doSomeThing(); or this->m_age = 42;

You can use just:

doSomeThing(); or m_age = 42;

It's your code style?