Fix a virtual method declaration.