diff options
author | Laurent Godard <lgodard.libre@laposte.net> | 2014-10-09 14:26:49 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2015-01-08 15:09:30 +0100 |
commit | 0793fefc94caa570fa28127c8b6a4d0acb4c6bd4 (patch) | |
tree | e7af728a1677e5dd1f2705774b9264db66ee84e3 /sc/source | |
parent | ecf72454c4b04e4e8b381e7f4fbad60de5137293 (diff) |
remove warning: ‘nIndex’ may be used uninitialized
Change-Id: I317c2f4409f556ab967e4f08caa99cffcfce26cc
Reviewed-on: https://gerrit.libreoffice.org/11876
Reviewed-by: Kohei Yoshida <libreoffice@kohei.us>
Tested-by: Kohei Yoshida <libreoffice@kohei.us>
(cherry picked from commit 430747397508f297be7ae1fa734a43ea705e9a43)
Reviewed-on: https://gerrit.libreoffice.org/13769
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
(cherry picked from commit d900d7387cbff1ab5e57122b92f64f7d72d7c3b5)
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/core/data/compressedarray.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/core/data/compressedarray.cxx b/sc/source/core/data/compressedarray.cxx index a14cd9d2bec9..a617260b6dfd 100644 --- a/sc/source/core/data/compressedarray.cxx +++ b/sc/source/core/data/compressedarray.cxx @@ -248,7 +248,7 @@ template< typename A, typename D > void ScCompressedArray<A,D>::CopyFrom( const ScCompressedArray<A,D>& rArray, A nStart, A nEnd, long nSourceDy ) { - size_t nIndex; + size_t nIndex = 0; A nRegionEnd; for (A j=nStart; j<=nEnd; ++j) { @@ -385,7 +385,7 @@ void ScBitMaskCompressedArray<A,D>::CopyFromAnded( const ScBitMaskCompressedArray<A,D>& rArray, A nStart, A nEnd, const D& rValueToAnd, long nSourceDy ) { - size_t nIndex; + size_t nIndex = 0; A nRegionEnd; for (A j=nStart; j<=nEnd; ++j) { |