Silence some warnings

This commit is contained in:
Georg Hagen
2024-07-09 13:43:48 +02:00
parent b4619be858
commit 268be2ca60
5 changed files with 12 additions and 8 deletions

View File

@@ -19,7 +19,7 @@ namespace OpenVulkano::Input
int GestureTap::GetTouchCount() const
{
return std::count_if(m_touchMap.begin(), m_touchMap.end(), [](const auto& t) { return t.second; });
return std::count_if(m_touchMap.begin(), m_touchMap.end(), [](const std::pair<TouchId, bool>& t) { return t.second; });
}
void GestureTap::Cancel()
@@ -84,4 +84,4 @@ namespace OpenVulkano::Input
}
if (!GetTouchCount()) Reset(); // empty map if no touch
}
}
}