When I add a virtual function with the refactoring the function is added with the keywords virtual and override.
But the code inspector says that the virtual keyword can be removed. Doesn't really make sense.
Martin Richter [rMVP] WWJD http://blog.m-ri.de "A well-written program is its own heaven; a poorly written program is its own hell!" The Tao of Programming
Ok. Thanks. I missed the settings. I never changed them. So I assume that I use the defaults.
Martin Richter [rMVP] WWJD http://blog.m-ri.de "A well-written program is its own heaven; a poorly written program is its own hell!" The Tao of Programming
The option names have changed slightly since I last updated the notes I copy and paste them from, oops. In VA 2399 the option is now:
VA Options -> Code Generation -> Add keyword to generated C++ methods: override / virtual / virtual and override
where you pick one of the three options from the pull down list, and the default for a clean install of VA is "override", which is what Code Inspection recommends.