Use const functions

This commit is contained in:
Rob Loach
2020-10-25 12:40:17 -04:00
parent e657fcb41f
commit fd83520400
27 changed files with 87 additions and 87 deletions

View File

@@ -10,7 +10,7 @@
* @param name The machine-readable name of the property.
*/
#define GETTERSETTER(type, method, name) \
inline type Get##method() { return name; } \
inline type Get##method() const { return name; } \
inline void Set##method(type value) { name = value; }
#endif