diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-04-23 13:00:53 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-04-23 13:00:53 +0200 |
commit | 58240fdb337a3ca0e2a8e63212cae509cda38daf (patch) | |
tree | 38747e507f7a7301a1fd0b7a31a4ce1d8cd8bf66 /LibGUI/GWindow.cpp | |
parent | 243e1d84627c20a39f5464bb61cafae9fa2fe456 (diff) | |
download | serenity-58240fdb337a3ca0e2a8e63212cae509cda38daf.zip |
Do a pass of compiler warning fixes.
This is really making me question not using 64-bit integers more.
Diffstat (limited to 'LibGUI/GWindow.cpp')
-rw-r--r-- | LibGUI/GWindow.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/LibGUI/GWindow.cpp b/LibGUI/GWindow.cpp index b25fa3efe3..cf1d1214fa 100644 --- a/LibGUI/GWindow.cpp +++ b/LibGUI/GWindow.cpp @@ -245,7 +245,7 @@ void GWindow::event(CEvent& event) message.rects[i] = rects[i]; ByteBuffer extra_data; if (rects.size() > WSAPI_ClientMessage::max_inline_rect_count) - extra_data = ByteBuffer::wrap((void*)&rects[WSAPI_ClientMessage::max_inline_rect_count], (rects.size() - WSAPI_ClientMessage::max_inline_rect_count) * sizeof(WSAPI_Rect)); + extra_data = ByteBuffer::wrap(&rects[WSAPI_ClientMessage::max_inline_rect_count], (rects.size() - WSAPI_ClientMessage::max_inline_rect_count) * sizeof(WSAPI_Rect)); GEventLoop::current().post_message_to_server(message, extra_data); } return; @@ -324,7 +324,7 @@ void GWindow::update(const Rect& a_rect) request.rects[i] = m_pending_paint_event_rects[i]; ByteBuffer extra_data; if (m_pending_paint_event_rects.size() > WSAPI_ClientMessage::max_inline_rect_count) - extra_data = ByteBuffer::wrap((void*)&m_pending_paint_event_rects[WSAPI_ClientMessage::max_inline_rect_count], (m_pending_paint_event_rects.size() - WSAPI_ClientMessage::max_inline_rect_count) * sizeof(WSAPI_Rect)); + extra_data = ByteBuffer::wrap(&m_pending_paint_event_rects[WSAPI_ClientMessage::max_inline_rect_count], (m_pending_paint_event_rects.size() - WSAPI_ClientMessage::max_inline_rect_count) * sizeof(WSAPI_Rect)); request.rect_count = m_pending_paint_event_rects.size(); GEventLoop::current().post_message_to_server(request, extra_data); m_pending_paint_event_rects.clear_with_capacity(); |