[Libreoffice-commits] core.git: sc/source
Laurent Godard
lgodard.libre at laposte.net
Thu Oct 9 05:31:31 PDT 2014
sc/source/core/data/compressedarray.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 430747397508f297be7ae1fa734a43ea705e9a43
Author: Laurent Godard <lgodard.libre at laposte.net>
Date: Thu Oct 9 14:26:49 2014 +0200
remove warning: ânIndexâ may be used uninitialized
Change-Id: I317c2f4409f556ab967e4f08caa99cffcfce26cc
Reviewed-on: https://gerrit.libreoffice.org/11876
Reviewed-by: Kohei Yoshida <libreoffice at kohei.us>
Tested-by: Kohei Yoshida <libreoffice at kohei.us>
diff --git a/sc/source/core/data/compressedarray.cxx b/sc/source/core/data/compressedarray.cxx
index 234d96b..ebe2822 100644
--- a/sc/source/core/data/compressedarray.cxx
+++ b/sc/source/core/data/compressedarray.cxx
@@ -241,7 +241,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)
{
@@ -373,7 +373,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)
{
More information about the Libreoffice-commits
mailing list