svx/source/dialog/charmap.cxx       |    3 +--
 svx/source/dialog/searchcharmap.cxx |    3 +--
 2 files changed, 2 insertions(+), 4 deletions(-)

New commits:
commit 6e70d50db34afc9242b45172f456bb8221c4fa00
Author:     Andreas Heinisch <andreas.heini...@yahoo.de>
AuthorDate: Fri Mar 24 00:28:11 2023 +0100
Commit:     Andreas Heinisch <andreas.heini...@yahoo.de>
CommitDate: Fri Mar 24 02:25:58 2023 +0000

    Delete temporary variable
    
    Change-Id: I5d0fc2a4b078e49be684b4a9b8a27f6059d9e5c3
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149475
    Tested-by: Jenkins
    Reviewed-by: Andreas Heinisch <andreas.heini...@yahoo.de>

diff --git a/svx/source/dialog/charmap.cxx b/svx/source/dialog/charmap.cxx
index 5f08ba3e96c8..7b74eab65aa3 100644
--- a/svx/source/dialog/charmap.cxx
+++ b/svx/source/dialog/charmap.cxx
@@ -634,9 +634,8 @@ void SvxShowCharSet::DrawChars_Impl(vcl::RenderContext& 
rRenderContext, int n1,
         rRenderContext.SetFillColor(rStyleSettings.GetDisableColor());
         for (i = n2 - n1 + 1; i < ROW_COUNT * COLUMN_COUNT; i++)
         {
-            Point pix = MapIndexToPixel(i + n1);
             rRenderContext.DrawRect(
-                tools::Rectangle(Point(pix.X(), pix.Y()), Size(nX + 2, nY + 
2)));
+                tools::Rectangle(MapIndexToPixel(i + n1), Size(nX + 2, nY + 
2)));
         }
     }
 }
diff --git a/svx/source/dialog/searchcharmap.cxx 
b/svx/source/dialog/searchcharmap.cxx
index c5ae90dbf052..0bbb88448be5 100644
--- a/svx/source/dialog/searchcharmap.cxx
+++ b/svx/source/dialog/searchcharmap.cxx
@@ -286,9 +286,8 @@ void SvxSearchCharSet::DrawChars_Impl(vcl::RenderContext& 
rRenderContext, int n1
         rRenderContext.SetFillColor(rStyleSettings.GetDisableColor());
         for (i = n2 - n1 + 1; i < ROW_COUNT * COLUMN_COUNT; i++)
         {
-            Point pix = MapIndexToPixel(i + n1);
             rRenderContext.DrawRect(
-                tools::Rectangle(Point(pix.X(), pix.Y()), Size(nX + 2, nY + 
2)));
+                tools::Rectangle(MapIndexToPixel(i + n1), Size(nX + 2, nY + 
2)));
         }
     }
 }

Reply via email to