0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -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:
Bram Moolenaar
2016-03-19 20:51:35 +01:00
parent 4d581a826c
commit cc6cf9b9f9
4 changed files with 20 additions and 5 deletions

View File

@@ -33,6 +33,12 @@
# define __out SAL__out
#endif
#if (defined(_MSC_VER) && (_MSC_VER >= 1700)) || (__cplusplus >= 201103L)
# define FINAL final
#else
# define FINAL
#endif
#ifdef DYNAMIC_DIRECTX
extern "C" HINSTANCE vimLoadLib(char *name);
@@ -222,7 +228,7 @@ public:
}
};
class GdiTextRenderer : public IDWriteTextRenderer
class GdiTextRenderer FINAL : public IDWriteTextRenderer
{
public:
GdiTextRenderer(