diff options
Diffstat (limited to 'src/SFML/Window/Unix/ClipboardImpl.cpp')
-rw-r--r-- | src/SFML/Window/Unix/ClipboardImpl.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/SFML/Window/Unix/ClipboardImpl.cpp b/src/SFML/Window/Unix/ClipboardImpl.cpp index df2fd95..ec222cd 100644 --- a/src/SFML/Window/Unix/ClipboardImpl.cpp +++ b/src/SFML/Window/Unix/ClipboardImpl.cpp @@ -1,7 +1,7 @@ //////////////////////////////////////////////////////////// // // SFML - Simple and Fast Multimedia Library -// Copyright (C) 2007-2018 Laurent Gomila (laurent@sfml-dev.org) +// Copyright (C) 2007-2023 Laurent Gomila (laurent@sfml-dev.org) // // This software is provided 'as-is', without any express or implied warranty. // In no event will the authors be held liable for any damages arising from the use of this software. @@ -209,7 +209,7 @@ void ClipboardImpl::processEvent(XEvent& windowEvent) // Notification that the current selection owner // has responded to our request - XSelectionEvent& selectionEvent = *reinterpret_cast<XSelectionEvent*>(&windowEvent.xselection); + XSelectionEvent& selectionEvent = windowEvent.xselection; m_clipboardContents.clear(); @@ -274,7 +274,7 @@ void ClipboardImpl::processEvent(XEvent& windowEvent) case SelectionRequest: { // Respond to a request for our clipboard contents - XSelectionRequestEvent& selectionRequestEvent = *reinterpret_cast<XSelectionRequestEvent*>(&windowEvent.xselectionrequest); + XSelectionRequestEvent& selectionRequestEvent = windowEvent.xselectionrequest; // Our reply XSelectionEvent selectionEvent; @@ -307,7 +307,7 @@ void ClipboardImpl::processEvent(XEvent& windowEvent) 32, PropModeReplace, reinterpret_cast<unsigned char*>(&targets[0]), - targets.size() + static_cast<int>(targets.size()) ); // Notify the requestor that they can read the targets from their window property @@ -330,7 +330,7 @@ void ClipboardImpl::processEvent(XEvent& windowEvent) 8, PropModeReplace, reinterpret_cast<const unsigned char*>(data.c_str()), - data.size() + static_cast<int>(data.size()) ); // Notify the requestor that they can read the data from their window property @@ -353,8 +353,8 @@ void ClipboardImpl::processEvent(XEvent& windowEvent) m_utf8String, 8, PropModeReplace, - reinterpret_cast<const unsigned char*>(data.c_str()), - data.size() + data.c_str(), + static_cast<int>(data.size()) ); // Notify the requestor that they can read the data from their window property |