coverity#1130491 Unused pointer value

Change-Id: I6de205be4c35a0f06fa9c16671b99d44fb47f9d5
This commit is contained in:
Caolán McNamara
2014-01-24 13:37:56 +00:00
parent 604ce7566d
commit 45ef5c48f4

View File

@@ -615,10 +615,9 @@ void SwViewShell::UpdateAllCharts()
sal_Bool SwViewShell::HasCharts() const
{
sal_Bool bRet = sal_False;
const SwStartNode *pStNd;
SwNodeIndex aIdx( *GetDoc()->GetNodes().GetEndOfAutotext().
StartOfSectionNode(), 1 );
while ( 0 != (pStNd = aIdx.GetNode().GetStartNode()) )
while (aIdx.GetNode().GetStartNode())
{
++aIdx;
const SwOLENode *pNd = aIdx.GetNode().GetOLENode();