mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 7.4.1610
Problem: Compiler warnings for non-virtual destructor. Solution: Mark the classe final. (Ken Takata)
This commit is contained in:
@@ -34,6 +34,12 @@ extern HWND s_hwnd;
|
||||
extern HWND vim_parent_hwnd;
|
||||
}
|
||||
|
||||
#if (defined(_MSC_VER) && (_MSC_VER >= 1700)) || (__cplusplus >= 201103L)
|
||||
# define FINAL final
|
||||
#else
|
||||
# define FINAL
|
||||
#endif
|
||||
|
||||
#if (defined(_MSC_VER) && _MSC_VER < 1300) || !defined(MAXULONG_PTR)
|
||||
/* Work around old versions of basetsd.h which wrongly declares
|
||||
* UINT_PTR as unsigned long */
|
||||
@@ -93,7 +99,7 @@ static CVim *app = 0;
|
||||
* ----------
|
||||
*/
|
||||
|
||||
class CVim : public IVim
|
||||
class CVim FINAL : public IVim
|
||||
{
|
||||
public:
|
||||
virtual ~CVim();
|
||||
@@ -428,7 +434,7 @@ CVim::Eval(BSTR expr, BSTR *result)
|
||||
* ----------
|
||||
*/
|
||||
|
||||
class CVimCF : public IClassFactory
|
||||
class CVimCF FINAL : public IClassFactory
|
||||
{
|
||||
public:
|
||||
static CVimCF *Create();
|
||||
|
Reference in New Issue
Block a user