diff options
author | Neil <nyamatongwe@gmail.com> | 2025-03-06 11:18:50 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2025-03-06 11:18:50 +1100 |
commit | 102fa1d501808187235f93670591d5b9d1253778 (patch) | |
tree | 9b66d840ad8ac1ed8580743afa5673b8e335ef82 /win32 | |
parent | 00838f369d7ca189b498f70c8c446ccc64cc0e2f (diff) | |
download | scintilla-mirror-102fa1d501808187235f93670591d5b9d1253778.tar.gz |
Move static functions and variables into unnamed namespace and use constexpr.
Diffstat (limited to 'win32')
-rw-r--r-- | win32/PlatWin.cxx | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx index a4fd552b2..37c33d6ed 100644 --- a/win32/PlatWin.cxx +++ b/win32/PlatWin.cxx @@ -4148,7 +4148,18 @@ void Platform::DebugPrintf(const char *, ...) noexcept { } #endif -static bool assertionPopUps = true; +namespace { + +void ReleaseLibrary(HMODULE &hLib) noexcept { + if (hLib) { + FreeLibrary(hLib); + hLib = {}; + } +} + +bool assertionPopUps = true; + +} bool Platform::ShowAssertionPopUps(bool assertionPopUps_) noexcept { const bool ret = assertionPopUps; @@ -4182,17 +4193,6 @@ void Platform_Initialise(void *hInstance) noexcept { ListBoxX_Register(); } -namespace { - -void ReleaseLibrary(HMODULE &hLib) noexcept { - if (hLib) { - FreeLibrary(hLib); - hLib = {}; - } -} - -} - void Platform_Finalise(bool fromDllMain) noexcept { if (!fromDllMain) { #if defined(USE_D2D) |