The International Simutrans Forum

Development => Technical Documentation => Topic started by: Max-Max on June 19, 2013, 05:52:27 PM

Title: gui_komponente_t
Post by: Max-Max on June 19, 2013, 05:52:27 PM
in gui_komponente_t, is there a reason to why koord groesse is declared public?
It has both a set and get method, but if groesse is public, they are of no use.

shouldn't groesse be protected? Or private if you want to force the use of set and get methods?
Title: Re: gui_komponente_t
Post by: prissi on June 19, 2013, 09:32:54 PM
This is historic, as some method did use it directly. It could be protected.
Title: Re: gui_komponente_t
Post by: Max-Max on June 19, 2013, 10:33:12 PM
Okay, I will fix it...