From 58df08f3900d1809dcfadae6d6a6bb87794a4bad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ferenc=20G=C3=A9czi?= Date: Wed, 18 Dec 2024 00:00:00 +0000 Subject: [PATCH] [map] Fix unused variable warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes the following warning: ```` map/framework.cpp:2252:12: warning: variable ‘rect’ set but not used [-Wunused-but-set-variable] ```` Signed-off-by: Ferenc Géczi --- map/framework.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/map/framework.cpp b/map/framework.cpp index 734ea57059..ab530fd944 100644 --- a/map/framework.cpp +++ b/map/framework.cpp @@ -2250,7 +2250,7 @@ place_page::Info Framework::BuildPlacePageInfo(place_page::BuildInfo const & bui { auto const & track = *GetBookmarkManager().GetTrack(buildInfo.m_trackId); auto rect = track.GetLimitRect(); - track.UpdateSelectionInfo(track.GetLimitRect(), trackSelectionInfo); + track.UpdateSelectionInfo(rect, trackSelectionInfo); } else trackSelectionInfo = FindTrackInTapPosition(buildInfo);