summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2012-07-17 17:36:16 +0200
committerMichael Stahl <mstahl@redhat.com>2012-07-17 17:51:26 +0200
commitb8aa2fa9506967e20fd0db0af30de599f91cf10a (patch)
treee3edc8cef0f866fdebacc472ed1cc750a4c89d37
parentdocbm.cxx: MSVC wants const_iterators and complains with error C2440 (diff)
downloadcore-b8aa2fa9506967e20fd0db0af30de599f91cf10a.tar.gz
core-b8aa2fa9506967e20fd0db0af30de599f91cf10a.zip
warning C4701: potentially uninitialized local variable used
Change-Id: Id82ecd3bfa7da6740d475ccaeea599529b090fe6
-rw-r--r--sw/source/core/txtnode/ndtxt.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/txtnode/ndtxt.cxx b/sw/source/core/txtnode/ndtxt.cxx
index 1a710a814d47..85336a8e42a6 100644
--- a/sw/source/core/txtnode/ndtxt.cxx
+++ b/sw/source/core/txtnode/ndtxt.cxx
@@ -3107,7 +3107,7 @@ const ModelToViewHelper::ConversionMap*
{
const SwTxtAttr* pAttr = (*pSwpHints2)[i];
bool bReplace = false;
- xub_StrLen nFieldPos;
+ xub_StrLen nFieldPos(STRING_NOTFOUND);
rtl::OUString aExpand;
switch (pAttr->Which())
{