E2079 'function' must be declared with no parameters (C++)

From RAD Studio