vcl/source/control/fixed.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 5823e25c929eafee043a734486f7b1ad8a269be1
Author:     Christopher Sherlock <chris.sherloc...@gmail.com>
AuthorDate: Sun Dec 22 22:40:59 2024 +1100
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Sun Feb 2 07:23:52 2025 +0100

    vcl: simplify ImplCalcPos()
    
    Change-Id: Ie7ea3b4f88c6740cb00b01c739f943d2e8011204
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179143
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>
    Tested-by: Jenkins

diff --git a/vcl/source/control/fixed.cxx b/vcl/source/control/fixed.cxx
index 8a366a0d69b3..8263e8923056 100644
--- a/vcl/source/control/fixed.cxx
+++ b/vcl/source/control/fixed.cxx
@@ -66,8 +66,7 @@ static Point ImplCalcPos( WinBits nStyle, const Point& rPos,
     else
         nY = (rWinSize.Height()-rObjSize.Height())/2;
 
-    Point aPos( nX+rPos.X(), nY+rPos.Y() );
-    return aPos;
+    return Point(nX + rPos.X(), nY + rPos.Y());
 }
 
 void FixedText::ImplInit( vcl::Window* pParent, WinBits nStyle )

Reply via email to