mirror of
https://github.com/SFML/SFML.git
synced 2024-11-25 12:51:05 +08:00
Remove unhelpful return value
This commit is contained in:
parent
df284acefe
commit
bff2977f13
@ -475,7 +475,7 @@ private:
|
|||||||
/// \param event Event to filter
|
/// \param event Event to filter
|
||||||
///
|
///
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
[[nodiscard]] bool filterEvent(const Event& event);
|
void filterEvent(const Event& event);
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
/// \brief Perform some common internal initializations
|
/// \brief Perform some common internal initializations
|
||||||
|
@ -161,7 +161,8 @@ bool WindowBase::pollEvent(Event& event)
|
|||||||
{
|
{
|
||||||
if (m_impl && m_impl->popEvent(event, false))
|
if (m_impl && m_impl->popEvent(event, false))
|
||||||
{
|
{
|
||||||
return filterEvent(event);
|
filterEvent(event);
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -175,7 +176,8 @@ bool WindowBase::waitEvent(Event& event)
|
|||||||
{
|
{
|
||||||
if (m_impl && m_impl->popEvent(event, true))
|
if (m_impl && m_impl->popEvent(event, true))
|
||||||
{
|
{
|
||||||
return filterEvent(event);
|
filterEvent(event);
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -380,7 +382,7 @@ void WindowBase::onResize()
|
|||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
bool WindowBase::filterEvent(const Event& event)
|
void WindowBase::filterEvent(const Event& event)
|
||||||
{
|
{
|
||||||
// Notify resize events to the derived class
|
// Notify resize events to the derived class
|
||||||
if (const auto* resized = event.getIf<Event::Resized>())
|
if (const auto* resized = event.getIf<Event::Resized>())
|
||||||
@ -391,8 +393,6 @@ bool WindowBase::filterEvent(const Event& event)
|
|||||||
// Notify the derived class
|
// Notify the derived class
|
||||||
onResize();
|
onResize();
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user