summaryrefslogtreecommitdiff
path: root/basctl
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 /basctl
parent9d0f86326cbf6b986176c5b5fe7660fa510c8d70 (diff)
Use constants instead of (possibly wrong) magic numbers
Change-Id: I0829d271337b9fe77341c62a1c2ef4d6ae62c727
Diffstat (limited to 'basctl')
-rw-r--r--basctl/source/basicide/baside2.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/basctl/source/basicide/baside2.cxx b/basctl/source/basicide/baside2.cxx
index 339f2d65733a..aa68f51908eb 100644
--- a/basctl/source/basicide/baside2.cxx
+++ b/basctl/source/basicide/baside2.cxx
@@ -901,7 +901,7 @@ void ModulWindow::ExecuteCommand (SfxRequest& rReq)
}
case SID_SELECTALL:
{
- TextSelection aSel( TextPaM( 0, 0 ), TextPaM( TEXT_PARA_ALL, 0xFFFF ) );
+ TextSelection aSel( TextPaM( 0, 0 ), TextPaM( TEXT_PARA_ALL, TEXT_INDEX_ALL ) );
TextView * pView = GetEditView();
pView->SetSelection( aSel );
pView->GetWindow()->GrabFocus();
@@ -1245,7 +1245,7 @@ sal_uInt16 ModulWindow::StartSearchAndReplace( const SvxSearchItem& rSearchItem,
if ( !rSearchItem.GetBackward() )
pView->SetSelection( TextSelection() );
else
- pView->SetSelection( TextSelection( TextPaM( 0xFFFFFFFF, 0xFFFF ), TextPaM( 0xFFFFFFFF, 0xFFFF ) ) );
+ pView->SetSelection( TextSelection( TextPaM( TEXT_PARA_ALL, TEXT_INDEX_ALL ), TextPaM( TEXT_PARA_ALL, TEXT_INDEX_ALL ) ) );
}
bool const bForward = !rSearchItem.GetBackward();