tdf#163486: PVS: variable was assigned the same value
Since
commit 49ab7533eb
Author: Jens-Heiner Rechtien <hr@openoffice.org>
Date: Thu Sep 27 07:43:57 2007 +0000
INTEGRATION: CWS swwarnings (1.15.222); FILE MERGED
V1048 The 'm_bUndoIdInitialized' variable was assigned the same value.
Change-Id: Iccc66213efa98c8fc9108294515ec174b45cc08e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176537
Reviewed-by: László Németh <nemeth@numbertext.org>
Tested-by: Jenkins
This commit is contained in:
parent
fa3e9a2f31
commit
5f251d6ff7
1 changed files with 7 additions and 7 deletions
|
@ -151,7 +151,7 @@ bool SwAutoCorrDoc::Delete( sal_Int32 nStt, sal_Int32 nEnd )
|
||||||
pFrame->MapViewToModelPos(TextFrameIndex(nEnd)));
|
pFrame->MapViewToModelPos(TextFrameIndex(nEnd)));
|
||||||
DeleteSel( aSel );
|
DeleteSel( aSel );
|
||||||
|
|
||||||
if( m_bUndoIdInitialized )
|
if( !m_bUndoIdInitialized )
|
||||||
m_bUndoIdInitialized = true;
|
m_bUndoIdInitialized = true;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -267,7 +267,7 @@ bool SwAutoCorrDoc::ReplaceRange( sal_Int32 nPos, sal_Int32 nSourceLength, const
|
||||||
pPam->DeleteMark();
|
pPam->DeleteMark();
|
||||||
}
|
}
|
||||||
|
|
||||||
if( m_bUndoIdInitialized )
|
if( !m_bUndoIdInitialized )
|
||||||
{
|
{
|
||||||
m_bUndoIdInitialized = true;
|
m_bUndoIdInitialized = true;
|
||||||
if( 1 == rText.getLength() )
|
if( 1 == rText.getLength() )
|
||||||
|
@ -305,7 +305,7 @@ void SwAutoCorrDoc::SetAttr( sal_Int32 nStt, sal_Int32 nEnd, sal_uInt16 nSlotId,
|
||||||
|
|
||||||
m_rEditSh.GetDoc()->SetFormatItemByAutoFormat( aPam, aSet );
|
m_rEditSh.GetDoc()->SetFormatItemByAutoFormat( aPam, aSet );
|
||||||
|
|
||||||
if( m_bUndoIdInitialized )
|
if( !m_bUndoIdInitialized )
|
||||||
m_bUndoIdInitialized = true;
|
m_bUndoIdInitialized = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -323,7 +323,7 @@ bool SwAutoCorrDoc::SetINetAttr( sal_Int32 nStt, sal_Int32 nEnd, const OUString&
|
||||||
aSet( m_rEditSh.GetDoc()->GetAttrPool() );
|
aSet( m_rEditSh.GetDoc()->GetAttrPool() );
|
||||||
aSet.Put( SwFormatINetFormat( rURL, OUString() ));
|
aSet.Put( SwFormatINetFormat( rURL, OUString() ));
|
||||||
m_rEditSh.GetDoc()->SetFormatItemByAutoFormat( aPam, aSet );
|
m_rEditSh.GetDoc()->SetFormatItemByAutoFormat( aPam, aSet );
|
||||||
if( m_bUndoIdInitialized )
|
if( !m_bUndoIdInitialized )
|
||||||
m_bUndoIdInitialized = true;
|
m_bUndoIdInitialized = true;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -362,7 +362,7 @@ OUString const* SwAutoCorrDoc::GetPrevPara(bool const bAtNormalPos)
|
||||||
pStr = & pFrame->GetText();
|
pStr = & pFrame->GetText();
|
||||||
}
|
}
|
||||||
|
|
||||||
if( m_bUndoIdInitialized )
|
if( !m_bUndoIdInitialized )
|
||||||
m_bUndoIdInitialized = true;
|
m_bUndoIdInitialized = true;
|
||||||
|
|
||||||
return pStr;
|
return pStr;
|
||||||
|
@ -372,7 +372,7 @@ bool SwAutoCorrDoc::ChgAutoCorrWord( sal_Int32& rSttPos, sal_Int32 nEndPos,
|
||||||
SvxAutoCorrect& rACorrect,
|
SvxAutoCorrect& rACorrect,
|
||||||
OUString* pPara )
|
OUString* pPara )
|
||||||
{
|
{
|
||||||
if( m_bUndoIdInitialized )
|
if( !m_bUndoIdInitialized )
|
||||||
m_bUndoIdInitialized = true;
|
m_bUndoIdInitialized = true;
|
||||||
|
|
||||||
// Found a beginning of a paragraph or a Blank,
|
// Found a beginning of a paragraph or a Blank,
|
||||||
|
@ -523,7 +523,7 @@ bool SwAutoCorrDoc::ChgAutoCorrWord( sal_Int32& rSttPos, sal_Int32 nEndPos,
|
||||||
|
|
||||||
bool SwAutoCorrDoc::TransliterateRTLWord( sal_Int32& rSttPos, sal_Int32 nEndPos, bool bApply )
|
bool SwAutoCorrDoc::TransliterateRTLWord( sal_Int32& rSttPos, sal_Int32 nEndPos, bool bApply )
|
||||||
{
|
{
|
||||||
if( m_bUndoIdInitialized )
|
if( !m_bUndoIdInitialized )
|
||||||
m_bUndoIdInitialized = true;
|
m_bUndoIdInitialized = true;
|
||||||
|
|
||||||
SwTextNode* pTextNd = m_rCursor.GetPointNode().GetTextNode();
|
SwTextNode* pTextNd = m_rCursor.GetPointNode().GetTextNode();
|
||||||
|
|
Loading…
Reference in a new issue