From faf57f45eae60a257a8076c83c71c422486f88ce Mon Sep 17 00:00:00 2001 From: Neil Date: Sat, 15 Apr 2017 16:47:52 +1000 Subject: Avoid calling virtual functions in constructors and destructors. --- win32/ScintillaWin.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'win32') diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx index fdcfbda53..e4547f6b6 100644 --- a/win32/ScintillaWin.cxx +++ b/win32/ScintillaWin.cxx @@ -276,7 +276,7 @@ class ScintillaWin : ~ScintillaWin() override; ScintillaWin &operator=(const ScintillaWin &); - void Initialise() override; + void Init(); void Finalise() override; #if defined(USE_D2D) void EnsureRenderTarget(HDC hdc); @@ -459,12 +459,12 @@ ScintillaWin::ScintillaWin(HWND hwnd) { if (caret.period < 0) caret.period = 0; - Initialise(); + Init(); } ScintillaWin::~ScintillaWin() {} -void ScintillaWin::Initialise() { +void ScintillaWin::Init() { // Initialize COM. If the app has already done this it will have // no effect. If the app hasn't, we really shouldn't ask them to call // it just so this internal feature works. -- cgit v1.2.3