diff options
author | Neil <nyamatongwe@gmail.com> | 2017-04-15 16:47:52 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2017-04-15 16:47:52 +1000 |
commit | faf57f45eae60a257a8076c83c71c422486f88ce (patch) | |
tree | bae925421b4048bc7de7784e38d73b9960e85553 /win32/ScintillaWin.cxx | |
parent | 75dba090f235fc4d24691bd1b57928f89ebe9f1b (diff) | |
download | scintilla-mirror-faf57f45eae60a257a8076c83c71c422486f88ce.tar.gz |
Avoid calling virtual functions in constructors and destructors.
Diffstat (limited to 'win32/ScintillaWin.cxx')
-rw-r--r-- | win32/ScintillaWin.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
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. |