E2080 'function' must be declared with one parameter (C++)

From RAD Studio