C++ warning fixes

Signed-off-by: Alexander Borsuk <me@alex.bio>
This commit is contained in:
Alexander Borsuk
2025-08-01 13:33:12 +02:00
committed by Konstantin Pastbin
parent a28d5d15ce
commit 2aaf37e9ee
15 changed files with 35 additions and 34 deletions

View File

@@ -230,12 +230,12 @@ void ScreenBase::SetAngle(double angle)
int ScreenBase::GetWidth() const
{
return std::lround(m_PixelRect.SizeX());
return static_cast<int>(std::lround(m_PixelRect.SizeX()));
}
int ScreenBase::GetHeight() const
{
return std::lround(m_PixelRect.SizeY());
return static_cast<int>(std::lround(m_PixelRect.SizeY()));
}
ScreenBase::MatrixT ScreenBase::CalcTransform(m2::PointD const & oldPt1, m2::PointD const & oldPt2,