summaryrefslogtreecommitdiff
path: root/src/gui_dwrite.cpp
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-03-19 20:51:35 +0100
committerBram Moolenaar <Bram@vim.org>2016-03-19 20:51:35 +0100
commitcc6cf9b9f9045a7d8b5923ea0c556e9a4c2567d3 (patch)
treef67acee007ddfeb283341a9ee5a08eed96ceb7a4 /src/gui_dwrite.cpp
parent4d581a826c54cecdde3001fdf0a5becf67e54cfd (diff)
downloadvim-git-cc6cf9b9f9045a7d8b5923ea0c556e9a4c2567d3.tar.gz
patch 7.4.1610v7.4.1610
Problem: Compiler warnings for non-virtual destructor. Solution: Mark the classe final. (Ken Takata)
Diffstat (limited to 'src/gui_dwrite.cpp')
-rw-r--r--src/gui_dwrite.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gui_dwrite.cpp b/src/gui_dwrite.cpp
index 07685eb09..9873c6728 100644
--- a/src/gui_dwrite.cpp
+++ b/src/gui_dwrite.cpp
@@ -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(