changeset 8271:770774e66011 v7.4.1428

commit https://github.com/vim/vim/commit/edb4f2b3601b0abd47091606269c0ac3244a805b Author: Bram Moolenaar <Bram@vim.org> Date: Sat Feb 27 15:27:23 2016 +0100 patch 7.4.1428 Problem: Compiler warning for non-virtual destructor. Solution: Make it virtual. (Yasuhiro Matsumoto)
author Christian Brabandt <cb@256bit.org>
date Sat, 27 Feb 2016 15:30:05 +0100
parents ea5f9d5ff9ed
children e34e1550788d
files src/gui_dwrite.cpp src/version.c
diffstat 2 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/gui_dwrite.cpp
+++ b/src/gui_dwrite.cpp
@@ -237,7 +237,8 @@ public:
 	AddRef();
     }
 
-    ~GdiTextRenderer()
+    // add "virtual" to avoid a compiler warning
+    virtual ~GdiTextRenderer()
     {
 	SafeRelease(&pRenderTarget_);
 	SafeRelease(&pRenderingParams_);
@@ -255,7 +256,7 @@ public:
 	__maybenull void* clientDrawingContext,
 	__out DWRITE_MATRIX* transform)
     {
-	//forward the render target's transform
+	// forward the render target's transform
 	pRenderTarget_->GetCurrentTransform(transform);
 	return S_OK;
     }
--- a/src/version.c
+++ b/src/version.c
@@ -749,6 +749,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1428,
+/**/
     1427,
 /**/
     1426,