Remove unhelpful return value

This commit is contained in:
Chris Thrasher 2023-11-09 16:42:47 -07:00
parent df284acefe
commit bff2977f13
No known key found for this signature in database
GPG Key ID: 56FB686C9DFC8E2C
2 changed files with 6 additions and 6 deletions

View File

@ -475,7 +475,7 @@ private:
/// \param event Event to filter
///
////////////////////////////////////////////////////////////
[[nodiscard]] bool filterEvent(const Event& event);
void filterEvent(const Event& event);
////////////////////////////////////////////////////////////
/// \brief Perform some common internal initializations

View File

@ -161,7 +161,8 @@ bool WindowBase::pollEvent(Event& event)
{
if (m_impl && m_impl->popEvent(event, false))
{
return filterEvent(event);
filterEvent(event);
return true;
}
else
{
@ -175,7 +176,8 @@ bool WindowBase::waitEvent(Event& event)
{
if (m_impl && m_impl->popEvent(event, true))
{
return filterEvent(event);
filterEvent(event);
return true;
}
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
if (const auto* resized = event.getIf<Event::Resized>())
@ -391,8 +393,6 @@ bool WindowBase::filterEvent(const Event& event)
// Notify the derived class
onResize();
}
return true;
}