Use more type safe interfaces

This commit is contained in:
Chris Thrasher 2024-05-28 05:15:25 +00:00 committed by Vittorio Romeo
parent 4fbd1d34b1
commit ac620900ac

View File

@ -142,8 +142,8 @@ String ClipboardImpl::getStringImpl()
const Clock clock; const Clock clock;
// Wait for a response for up to 1000ms // Wait for a response for up to 1 second
while (!m_requestResponded && (clock.getElapsedTime().asMilliseconds() < 1000)) while (!m_requestResponded && (clock.getElapsedTime() < sf::seconds(1)))
processEvents(); processEvents();
// If no response was received within the time period, clear our clipboard contents // If no response was received within the time period, clear our clipboard contents