aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32/PlatWin.h
diff options
context:
space:
mode:
authormitchell <unknown>2019-03-09 16:12:45 -0500
committermitchell <unknown>2019-03-09 16:12:45 -0500
commit87f97c98ec453cca3121a626b02ff8fca82ebc55 (patch)
tree7f90eb8739635b495e30d3665b9443cedb3d28af /win32/PlatWin.h
parent691ddb784229360488d8aadf4e5b9fc2f5d1f680 (diff)
downloadscintilla-mirror-87f97c98ec453cca3121a626b02ff8fca82ebc55.tar.gz
Backport: Use noexcept and constexpr where possible and reasonable.
Backport of changeset 7280:9cf6a15d6c85, but removed constexpr since it is not supported in C++11.
Diffstat (limited to 'win32/PlatWin.h')
-rw-r--r--win32/PlatWin.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/win32/PlatWin.h b/win32/PlatWin.h
index cf357f72d..2a1bcb649 100644
--- a/win32/PlatWin.h
+++ b/win32/PlatWin.h
@@ -13,7 +13,11 @@ namespace Scintilla {
extern void Platform_Initialise(void *hInstance);
extern void Platform_Finalise(bool fromDllMain);
-RECT RectFromPRectangle(PRectangle prc) noexcept;
+RECT RectFromPRectangle(PRectangle prc) noexcept {
+ RECT rc = { static_cast<LONG>(prc.left), static_cast<LONG>(prc.top),
+ static_cast<LONG>(prc.right), static_cast<LONG>(prc.bottom) };
+ return rc;
+}
#if defined(USE_D2D)
extern bool LoadD2D();