aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32/PlatWin.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2023-03-27 09:29:48 +1100
committerNeil <nyamatongwe@gmail.com>2023-03-27 09:29:48 +1100
commit765390e6db2b69976448e92d9a86516ead9b0c09 (patch)
treeeb01e21aae213bc8422ffdee8c99e4521c28dde8 /win32/PlatWin.h
parent481b5651df9bd160d4ff1f1ba471eead61a53252 (diff)
downloadscintilla-mirror-765390e6db2b69976448e92d9a86516ead9b0c09.tar.gz
Declare const where possible.
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 1391723dd..8ce798cf1 100644
--- a/win32/PlatWin.h
+++ b/win32/PlatWin.h
@@ -19,7 +19,7 @@ extern void Platform_Initialise(void *hInstance) noexcept;
extern void Platform_Finalise(bool fromDllMain) noexcept;
constexpr RECT RectFromPRectangle(PRectangle prc) noexcept {
- RECT rc = { static_cast<LONG>(prc.left), static_cast<LONG>(prc.top),
+ const RECT rc = { static_cast<LONG>(prc.left), static_cast<LONG>(prc.top),
static_cast<LONG>(prc.right), static_cast<LONG>(prc.bottom) };
return rc;
}