diff options
| author | Neil <nyamatongwe@gmail.com> | 2021-05-28 14:44:00 +1000 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2021-05-28 14:44:00 +1000 |
| commit | a20684909b6edadae8e0c8c9ebc0d15d7fc128ba (patch) | |
| tree | 039a26c722d5e51f987bf3611a2291080fd3bf97 /win32/PlatWin.h | |
| parent | e7a587461e906bbe03b7f67d6f3220aea5f43e0f (diff) | |
| download | scintilla-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.h | 2 |
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; } |
