vcl/source/outdev/font.cxx |    2 --
 1 file changed, 2 deletions(-)

New commits:
commit b7d472b0cc581d82c11802a32f2eeafa913ce9b1
Author:     Xisco Fauli <xiscofa...@libreoffice.org>
AuthorDate: Wed Nov 13 10:20:55 2024 +0100
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Wed Nov 13 11:31:47 2024 +0100

    tdf#163486: PVS: variable is assigned but not used
    
    Since
    commit 659db7d705835b8676065fb4fe3babe39d938977
    Author: Chris Sherlock <chris.sherloc...@gmail.com>
    Date:   Fri Jan 15 03:06:18 2016 +1100
    
        vcl: change ImplFontMetricData to be reference counted via intrusive_ptr
    
    V1001   The 'xFontMetric' variable is assigned but is not used by the end 
of the function.
    
    Change-Id: Ib3364c036a2a8e69917d6e02cd8cdbbeee9b65c0
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176521
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>
    Tested-by: Jenkins

diff --git a/vcl/source/outdev/font.cxx b/vcl/source/outdev/font.cxx
index 3d143938038b..e0b986f2d20b 100644
--- a/vcl/source/outdev/font.cxx
+++ b/vcl/source/outdev/font.cxx
@@ -220,8 +220,6 @@ FontMetric OutputDevice::GetFontMetric() const
 
     SAL_INFO("vcl.gdi.fontmetric", "OutputDevice::GetFontMetric:" << aMetric);
 
-    xFontMetric = nullptr;
-
     return aMetric;
 }
 

Reply via email to