coverity#984422 unused pointer value
Change-Id: I2200462b2a963820e2ca66094ded653f5597abff
This commit is contained in:
@@ -1420,8 +1420,7 @@ static bool lcl_GotoNextPrevNum( SwPosition& rPos, bool bNext,
|
|||||||
bool bOverUpper, sal_uInt8* pUpper, sal_uInt8* pLower )
|
bool bOverUpper, sal_uInt8* pUpper, sal_uInt8* pLower )
|
||||||
{
|
{
|
||||||
const SwTxtNode* pNd = rPos.nNode.GetNode().GetTxtNode();
|
const SwTxtNode* pNd = rPos.nNode.GetNode().GetTxtNode();
|
||||||
const SwNumRule* pRule;
|
if( !pNd || 0 == pNd->GetNumRule() )
|
||||||
if( !pNd || 0 == ( pRule = pNd->GetNumRule()))
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
sal_uInt8 nSrchNum = static_cast<sal_uInt8>(pNd->GetActualListLevel());
|
sal_uInt8 nSrchNum = static_cast<sal_uInt8>(pNd->GetActualListLevel());
|
||||||
@@ -1436,7 +1435,7 @@ static bool lcl_GotoNextPrevNum( SwPosition& rPos, bool bNext,
|
|||||||
if( aIdx.GetNode().IsTxtNode() )
|
if( aIdx.GetNode().IsTxtNode() )
|
||||||
{
|
{
|
||||||
pNd = aIdx.GetNode().GetTxtNode();
|
pNd = aIdx.GetNode().GetTxtNode();
|
||||||
pRule = pNd->GetNumRule();
|
const SwNumRule* pRule = pNd->GetNumRule();
|
||||||
|
|
||||||
sal_uInt8 nTmpNum;
|
sal_uInt8 nTmpNum;
|
||||||
|
|
||||||
@@ -1473,7 +1472,7 @@ static bool lcl_GotoNextPrevNum( SwPosition& rPos, bool bNext,
|
|||||||
if( aIdx.GetNode().IsTxtNode() )
|
if( aIdx.GetNode().IsTxtNode() )
|
||||||
{
|
{
|
||||||
pNd = aIdx.GetNode().GetTxtNode();
|
pNd = aIdx.GetNode().GetTxtNode();
|
||||||
pRule = pNd->GetNumRule();
|
const SwNumRule* pRule = pNd->GetNumRule();
|
||||||
if( pRule )
|
if( pRule )
|
||||||
{
|
{
|
||||||
if( ::lcl_IsNumOk( nSrchNum, nLower, nUpper, bOverUpper,
|
if( ::lcl_IsNumOk( nSrchNum, nLower, nUpper, bOverUpper,
|
||||||
|
Reference in New Issue
Block a user