Kaydet (Commit) 43074739 authored tarafından Laurent Godard's avatar Laurent Godard Kaydeden (comit) Kohei Yoshida

remove warning: ‘nIndex’ may be used uninitialized

Change-Id: I317c2f4409f556ab967e4f08caa99cffcfce26cc
Reviewed-on: https://gerrit.libreoffice.org/11876Reviewed-by: 's avatarKohei Yoshida <libreoffice@kohei.us>
Tested-by: 's avatarKohei Yoshida <libreoffice@kohei.us>
üst 8d0f9675
...@@ -241,7 +241,7 @@ template< typename A, typename D > ...@@ -241,7 +241,7 @@ template< typename A, typename D >
void ScCompressedArray<A,D>::CopyFrom( const ScCompressedArray<A,D>& rArray, A nStart, void ScCompressedArray<A,D>::CopyFrom( const ScCompressedArray<A,D>& rArray, A nStart,
A nEnd, long nSourceDy ) A nEnd, long nSourceDy )
{ {
size_t nIndex; size_t nIndex = 0;
A nRegionEnd; A nRegionEnd;
for (A j=nStart; j<=nEnd; ++j) for (A j=nStart; j<=nEnd; ++j)
{ {
...@@ -373,7 +373,7 @@ void ScBitMaskCompressedArray<A,D>::CopyFromAnded( ...@@ -373,7 +373,7 @@ void ScBitMaskCompressedArray<A,D>::CopyFromAnded(
const ScBitMaskCompressedArray<A,D>& rArray, A nStart, A nEnd, const ScBitMaskCompressedArray<A,D>& rArray, A nStart, A nEnd,
const D& rValueToAnd, long nSourceDy ) const D& rValueToAnd, long nSourceDy )
{ {
size_t nIndex; size_t nIndex = 0;
A nRegionEnd; A nRegionEnd;
for (A j=nStart; j<=nEnd; ++j) for (A j=nStart; j<=nEnd; ++j)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment