[Libreoffice-commits] core.git: 2 commits - sw/source
Tor Lillqvist
tml at collabora.com
Sun Apr 12 13:50:48 PDT 2015
sw/source/core/docnode/ndtbl1.cxx | 2 +-
sw/source/core/edit/edfld.cxx | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 17d714eef491bda2512ba8012e5b3067ca19a5be
Author: Tor Lillqvist <tml at collabora.com>
Date: Sun Apr 12 23:48:13 2015 +0300
WaE: variable 'i' is uninitialized when used here
Change-Id: I6c8dc01f5fb81557e3be5289ccd171037e69ae79
diff --git a/sw/source/core/edit/edfld.cxx b/sw/source/core/edit/edfld.cxx
index 1d97403..1afc33c 100644
--- a/sw/source/core/edit/edfld.cxx
+++ b/sw/source/core/edit/edfld.cxx
@@ -129,7 +129,7 @@ void SwEditShell::RemoveFldType(sal_uInt16 nFld, sal_uInt16 nResId)
const SwFldTypes* pFldTypes = GetDoc()->getIDocumentFieldsAccess().GetFldTypes();
sal_uInt16 nIdx = 0;
const SwFldTypes::size_type nSize = pFldTypes->size();
- for( SwFldTypes::size_type i; i < nSize; ++i )
+ for( SwFldTypes::size_type i = 0; i < nSize; ++i )
// Gleiche ResId -> Index erhoehen
if( (*pFldTypes)[i]->Which() == nResId && nIdx++ == nFld )
{
commit 6ceb124e220650205efbd2fbb89e106da707d5cf
Author: Tor Lillqvist <tml at collabora.com>
Date: Sun Apr 12 23:46:57 2015 +0300
WaE: variable 'i' is uninitialized when used here
Change-Id: Icddd80f9cdc71671061cc430a4c9224e74d06d25
diff --git a/sw/source/core/docnode/ndtbl1.cxx b/sw/source/core/docnode/ndtbl1.cxx
index a2f2ca8..5bf4baa 100644
--- a/sw/source/core/docnode/ndtbl1.cxx
+++ b/sw/source/core/docnode/ndtbl1.cxx
@@ -934,7 +934,7 @@ void SwDoc::GetTabBorders( const SwCursor& rCursor, SfxItemSet& rSet ) const
aSetBoxInfo.ResetFlags();
- for ( SwSelUnions::size_type i; i < aUnions.size(); ++i )
+ for ( SwSelUnions::size_type i = 0; i < aUnions.size(); ++i )
{
SwSelUnion *pUnion = &aUnions[i];
const SwTabFrm *pTab = pUnion->GetTable();
More information about the Libreoffice-commits
mailing list