sw/source/core/access/accpara.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit bada120310281bd0993309f4482f0a51dcf44973
Author:     Noel Grandin <[email protected]>
AuthorDate: Sun May 9 10:07:27 2021 +0200
Commit:     Noel Grandin <[email protected]>
CommitDate: Sun May 9 11:26:03 2021 +0200

    clang-tidy Undefined or garbage value returned to caller
    
    [clang-analyzer-core.uninitialized.UndefReturn,-warnings-as-errors]
    
    Change-Id: Idc8f2f4a3189a3a65c95740a12387d5df7c0bea6
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115266
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <[email protected]>

diff --git a/sw/source/core/access/accpara.cxx 
b/sw/source/core/access/accpara.cxx
index 63378702ad18..51645d24ab1e 100644
--- a/sw/source/core/access/accpara.cxx
+++ b/sw/source/core/access/accpara.cxx
@@ -3015,7 +3015,7 @@ sal_Int32 SAL_CALL 
SwAccessibleParagraph::getSeletedPositionStart( sal_Int32 nSe
 
     ThrowIfDisposed();
 
-    sal_Int32 nStart, nEnd;
+    sal_Int32 nStart=-1, nEnd=-1;
     /*sal_Bool bSelected = */GetSelectionAtIndex(&nSelectedPortionIndex, 
nStart, nEnd );
     return nStart;
 }
@@ -3026,7 +3026,7 @@ sal_Int32 SAL_CALL 
SwAccessibleParagraph::getSeletedPositionEnd( sal_Int32 nSele
 
     ThrowIfDisposed();
 
-    sal_Int32 nStart, nEnd;
+    sal_Int32 nStart=-1, nEnd=-1;
     /*sal_Bool bSelected = */GetSelectionAtIndex(&nSelectedPortionIndex, 
nStart, nEnd );
     return nEnd;
 }
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to