cmcfixes68: #i107420# remove trivial warnings from sw with newer gcc
This commit is contained in:
parent
e98f9815fa
commit
ff016bd9d3
2 changed files with 4 additions and 2 deletions
|
@ -270,8 +270,8 @@ void SwXText::insertString(const uno::Reference< text::XTextRange >& xTextRange,
|
|||
sal::static_int_cast< sal_IntPtr >( xRangeTunnel->getSomething( OTextCursorHelper::getUnoTunnelId()) ));
|
||||
}
|
||||
|
||||
if(pRange && pRange->GetDoc() == GetDoc() ||
|
||||
pCursor && pCursor->GetDoc() == GetDoc())
|
||||
if( (pRange && pRange->GetDoc() == GetDoc()) ||
|
||||
(pCursor && pCursor->GetDoc() == GetDoc()) )
|
||||
{
|
||||
const SwStartNode* pOwnStartNode = GetStartNode();
|
||||
if(pCursor)
|
||||
|
|
|
@ -717,6 +717,7 @@ USHORT SwSrcView::StartSearchAndReplace(const SvxSearchItem& rSearchItem,
|
|||
|
||||
|
||||
if(!bApi)
|
||||
{
|
||||
if(bNotFoundMessage)
|
||||
{
|
||||
InfoBox( 0, SW_RES(MSG_NOT_FOUND)).Execute();
|
||||
|
@ -728,6 +729,7 @@ USHORT SwSrcView::StartSearchAndReplace(const SvxSearchItem& rSearchItem,
|
|||
pTextView->SetSelection( TextSelection( aPaM, aPaM ) );
|
||||
StartSearchAndReplace( rSearchItem, FALSE, FALSE, TRUE );
|
||||
}
|
||||
}
|
||||
}
|
||||
return nFound;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue