Kaydet (Commit) 73590b75 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1241340 Unused value

Change-Id: I5fc73cfab0295cb2d2fd1f895bf2974c473ea30e
üst d541a89c
...@@ -1327,17 +1327,20 @@ void SwCrsrShell::UpdateCrsrPos() ...@@ -1327,17 +1327,20 @@ void SwCrsrShell::UpdateCrsrPos()
} }
// #i65475# - if Point/Mark in hidden sections, move them out // #i65475# - if Point/Mark in hidden sections, move them out
static void lcl_CheckHiddenSection( SwNodeIndex& rIdx ) static bool lcl_CheckHiddenSection( SwNodeIndex& rIdx )
{ {
bool bOk = true;
const SwSectionNode* pSectNd = rIdx.GetNode().FindSectionNode(); const SwSectionNode* pSectNd = rIdx.GetNode().FindSectionNode();
if( pSectNd && pSectNd->GetSection().IsHiddenFlag() ) if( pSectNd && pSectNd->GetSection().IsHiddenFlag() )
{ {
SwNodeIndex aTmp( *pSectNd ); SwNodeIndex aTmp( *pSectNd );
const SwNode* pFrmNd = const SwNode* pFrmNd =
rIdx.GetNodes().FindPrvNxtFrmNode( aTmp, pSectNd->EndOfSectionNode() ); rIdx.GetNodes().FindPrvNxtFrmNode( aTmp, pSectNd->EndOfSectionNode() );
SAL_WARN_IF( !pFrmNd, "sw", "found no Node with Frames" ); bOk = pFrmNd != NULL;
SAL_WARN_IF(!bOk, "sw", "found no Node with Frames");
rIdx = aTmp; rIdx = aTmp;
} }
return bOk;
} }
/// Try to set the cursor to the next visible content node. /// Try to set the cursor to the next visible content node.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment