cmcfixes68: #i107420# remove trivial warnings from sw with newer gcc

This commit is contained in:
Caolán McNamara 2009-12-03 17:24:39 +00:00
parent e98f9815fa
commit ff016bd9d3
2 changed files with 4 additions and 2 deletions

View file

@ -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)

View file

@ -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;
}