sw/source/core/unocore/unoframe.cxx |    6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

New commits:
commit adb561759ceb87b8bc0274a50b2ef546d137eae6
Author:     Xisco Fauli <xiscofa...@libreoffice.org>
AuthorDate: Wed Oct 23 01:16:02 2024 +0200
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Wed Oct 23 09:25:42 2024 +0200

    tdf#163486: PVS: Expression is always true
    
    V547    Expression 'pFollowTextFlow' is always true.
    
    Change-Id: I07696ef443e7eaa263d325eed225dfb5c0b89c51
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175461
    Tested-by: Jenkins
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>

diff --git a/sw/source/core/unocore/unoframe.cxx 
b/sw/source/core/unocore/unoframe.cxx
index a2a5e95ccf41..deb68a298ca5 100644
--- a/sw/source/core/unocore/unoframe.cxx
+++ b/sw/source/core/unocore/unoframe.cxx
@@ -921,11 +921,7 @@ bool 
BaseFrameProperties_Impl::FillBaseProperties(SfxItemSet& rToSet, const SfxI
     if (pFollowTextFlow)
     {
         SwFormatFollowTextFlow aFormatFollowTextFlow;
-        if( pFollowTextFlow )
-        {
-            aFormatFollowTextFlow.PutValue(*pFollowTextFlow, 
MID_FOLLOW_TEXT_FLOW);
-        }
-
+        aFormatFollowTextFlow.PutValue(*pFollowTextFlow, MID_FOLLOW_TEXT_FLOW);
         rToSet.Put(aFormatFollowTextFlow);
     }
 

Reply via email to