diff options
author | Tor Lillqvist <tlillqvist@suse.com> | 2013-08-18 12:28:08 +0300 |
---|---|---|
committer | Tor Lillqvist <tlillqvist@suse.com> | 2013-08-18 12:34:41 +0300 |
commit | 54d8baf8ad4e17ae7367ffa69e74b4e4f367a653 (patch) | |
tree | 667f8c334efe8d510e6b58bd1d3d4cbb42e507a8 /sw | |
parent | 3b68a17b49413e3d20a32c6a1bce3a74b9da1477 (diff) |
WaE: C4703: potentially uninitialized local pointer variable 'pSectNd' used
I think the compiler is wrong here. I don't think there is a way the
line can be reached without pSectNd being assigned a value. Let's
silence the warning anyway as we want to be buildable warning-free.
Change-Id: I6802c31feccdbf9727a02819fe0051b6edba3730
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/doc/docfld.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/doc/docfld.cxx b/sw/source/core/doc/docfld.cxx index 4a7cf24402ba..d917a713c4ed 100644 --- a/sw/source/core/doc/docfld.cxx +++ b/sw/source/core/doc/docfld.cxx @@ -2218,7 +2218,7 @@ void SwDocUpdtFld::_MakeFldList( SwDoc& rDoc, int eGetMode ) // from top to bottom std::vector<sal_uLong> aTmpArr; SwSectionFmts& rArr = rDoc.GetSections(); - SwSectionNode* pSectNd; + SwSectionNode* pSectNd = 0; sal_uInt16 nArrStt = 0; sal_uLong nSttCntnt = rDoc.GetNodes().GetEndOfExtras().GetIndex(); |