diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-07-13 11:54:41 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-07-13 17:58:34 +0200 |
commit | ef609a580b3e1de7c39ef391bb5df92680a22f36 (patch) | |
tree | 548113f7b4d1f0877adca0a669e2ceab41a6c648 /vcl | |
parent | deb9236d71dddbda6517bdc3a6f0911d38a77113 (diff) |
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 <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/treelist/imap.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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<IMapObject> 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() ); |