summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2015-08-15 15:14:47 +0200
committerMatteo Casalin <matteo.casalin@yahoo.com>2015-08-16 09:10:20 +0200
commit8353793c94416a9a3a5af074d881624e43e5ec2f (patch)
tree17f6e377b489ccf6439484371d4212e9afe734cd /sw
parent9d0f86326cbf6b986176c5b5fe7660fa510c8d70 (diff)
Use constants instead of (possibly wrong) magic numbers
Change-Id: I0829d271337b9fe77341c62a1c2ef4d6ae62c727
Diffstat (limited to 'sw')
-rw-r--r--sw/source/uibase/uiview/srcview.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/uiview/srcview.cxx b/sw/source/uibase/uiview/srcview.cxx
index 72b4de7b4f59..61553bff3291 100644
--- a/sw/source/uibase/uiview/srcview.cxx
+++ b/sw/source/uibase/uiview/srcview.cxx
@@ -414,7 +414,7 @@ void SwSrcView::Execute(SfxRequest& rReq)
pTextView->Paste();
break;
case SID_SELECTALL:
- pTextView->SetSelection( TextSelection( TextPaM( 0, 0 ), TextPaM( 0xFFFFFFFF, 0xFFFF ) ) );
+ pTextView->SetSelection( TextSelection( TextPaM( 0, 0 ), TextPaM( TEXT_PARA_ALL, TEXT_INDEX_ALL ) ) );
break;
}
aEditWin->Invalidate();
@@ -580,7 +580,7 @@ sal_uInt16 SwSrcView::StartSearchAndReplace(const SvxSearchItem& rSearchItem,
bool bAtStart = pTextView->GetSelection() == TextSelection( aPaM, aPaM );
if( !bForward )
- aPaM = TextPaM( TEXT_PARA_ALL, USHRT_MAX );
+ aPaM = TextPaM( TEXT_PARA_ALL, TEXT_INDEX_ALL );
if( bFromStart )
{