commit 2048d8d949a3adfd7e35df7d36c6ec01709708b4
parent e54b76ab4c90c9ad37f82cc607a5baec6e72d3b8
Author: cfillion <cfillion@users.noreply.github.com>
Date: Tue, 18 Feb 2020 16:33:11 -0500
remove more C-style casts
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/dialog.cpp b/src/dialog.cpp
@@ -86,7 +86,7 @@ int Dialog::HandleKey(MSG *msg, accelerator_register_t *accel)
if(!dialog || !dialog->hasFocus())
return 0; // not our window
- const int key = (int)msg->wParam;
+ const int key = static_cast<int>(msg->wParam);
int modifiers = 0;
if(GetAsyncKeyState(VK_MENU) & 0x8000)
@@ -212,7 +212,7 @@ void Dialog::center()
const double verticalBias = (top - parentRect.top) * 0.3;
#ifdef _WIN32
- top -= (int)verticalBias;
+ top -= static_cast<int>(verticalBias);
#else
top += verticalBias; // according to SWELL, top means bottom.
#endif