summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2015-04-12 23:48:13 +0300
committerTor Lillqvist <tml@collabora.com>2015-04-12 23:48:13 +0300
commit17d714eef491bda2512ba8012e5b3067ca19a5be (patch)
treeb14b0b079ddc94d0ff7bf6b5f120cfa8bf34677e
parent6ceb124e220650205efbd2fbb89e106da707d5cf (diff)
WaE: variable 'i' is uninitialized when used here
Change-Id: I6c8dc01f5fb81557e3be5289ccd171037e69ae79
-rw-r--r--sw/source/core/edit/edfld.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/edit/edfld.cxx b/sw/source/core/edit/edfld.cxx
index 1d9740334c29..1afc33ca31d2 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 )
{