aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32/PlatWin.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2021-05-28 14:44:00 +1000
committerNeil <nyamatongwe@gmail.com>2021-05-28 14:44:00 +1000
commita20684909b6edadae8e0c8c9ebc0d15d7fc128ba (patch)
tree039a26c722d5e51f987bf3611a2291080fd3bf97 /win32/PlatWin.h
parente7a587461e906bbe03b7f67d6f3220aea5f43e0f (diff)
downloadscintilla-mirror-a20684909b6edadae8e0c8c9ebc0d15d7fc128ba.tar.gz
Merge init into ScintillaWin constructor as not called from anywhere else.
Ensure variables initialised. Remove dead code.
Diffstat (limited to 'win32/PlatWin.h')
-rw-r--r--win32/PlatWin.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/PlatWin.h b/win32/PlatWin.h
index dd067bb2b..3ee0d6bb7 100644
--- a/win32/PlatWin.h
+++ b/win32/PlatWin.h
@@ -52,7 +52,7 @@ T DLLFunction(HMODULE hModule, LPCSTR lpProcName) noexcept {
}
FARPROC function = ::GetProcAddress(hModule, lpProcName);
static_assert(sizeof(T) == sizeof(function));
- T fp;
+ T fp {};
memcpy(&fp, &function, sizeof(T));
return fp;
}