sw/source/core/unocore/unochart.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit f03c221f5f4a4dfc0c75057f2505a7cc171a807b
Author:     Xisco Fauli <xiscofa...@libreoffice.org>
AuthorDate: Sun Oct 20 11:21:58 2024 +0200
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Sun Oct 20 15:33:56 2024 +0200

    tdf#163486: PVS: fix std:swap arguments
    
    Since
    commit 81c4be45829826ae73ac14e1cb862e38dd73344d
    Author: Caolán McNamara <caolan.mcnam...@collabora.com>
    Date:   Sat Dec 16 20:18:13 2023 +0000
    
        cid#1545561 std::swap COPY_INSTEAD_OF_MOVE
    
    V549    The first argument of 'swap' function is equal to the second 
argument.
    
    Change-Id: Ieeb06744afe4ea09b986c78e8b25a5b5fc87d434
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175253
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>
    Tested-by: Jenkins
    Tested-by: Caolán McNamara <caolan.mcnam...@collabora.com>

diff --git a/sw/source/core/unocore/unochart.cxx 
b/sw/source/core/unocore/unochart.cxx
index 8d170ff4893e..f0afc975e723 100644
--- a/sw/source/core/unocore/unochart.cxx
+++ b/sw/source/core/unocore/unochart.cxx
@@ -301,7 +301,7 @@ static bool GetTableAndCellsFromRangeRep(
             // need to switch start and end cell ?
             // (does not check for normalization here)
             if (bSortStartEndCells && 1 == sw_CompareCellsByColFirst( 
aStartCell, aEndCell ))
-                std::swap(aStartCell, aStartCell);
+                std::swap(aStartCell, aEndCell);
         }
         else    // a single cell like in "Table1.B3"
         {

Reply via email to