diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-05-09 10:07:27 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-05-09 11:26:03 +0200 |
commit | bada120310281bd0993309f4482f0a51dcf44973 (patch) | |
tree | 6cf4d0aa217af73cd51a6fa0dd4fd9964cbe7162 /sw/source | |
parent | 9dcd07b6be5739eecb8d8435e8130b20d4d568f0 (diff) |
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 <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/core/access/accpara.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |