From ef609a580b3e1de7c39ef391bb5df92680a22f36 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 13 Jul 2023 11:54:41 +0200 Subject: ImageMap::GetHitIMapObject can be const which removes an unnecessary const_cast Change-Id: I9ef2e7c8b87e15ebd04e8864bfdd322991d9af00 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154383 Tested-by: Jenkins Reviewed-by: Noel Grandin --- vcl/source/treelist/imap.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vcl') diff --git a/vcl/source/treelist/imap.cxx b/vcl/source/treelist/imap.cxx index 5c3b5b0b252a..ba29af020261 100644 --- a/vcl/source/treelist/imap.cxx +++ b/vcl/source/treelist/imap.cxx @@ -771,7 +771,7 @@ void ImageMap::InsertIMapObject( std::unique_ptr pNewObject ) IMapObject* ImageMap::GetHitIMapObject( const Size& rTotalSize, const Size& rDisplaySize, const Point& rRelHitPoint, - sal_uLong nFlags ) + sal_uLong nFlags ) const { Point aRelPoint( rTotalSize.Width() * rRelHitPoint.X() / rDisplaySize.Width(), rTotalSize.Height() * rRelHitPoint.Y() / rDisplaySize.Height() ); -- cgit