summaryrefslogtreecommitdiff
path: root/basctl
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2012-11-26 11:03:24 -0600
committerNorbert Thiebaud <nthiebaud@gmail.com>2012-11-27 23:00:04 -0600
commitad6f9f2f00df27eec2fc6e640eb1a662644de6a4 (patch)
tree62431406830814a99c0815202a2761a7465b6414 /basctl
parentc7709b460394283fd5b1d2779b6af3585f80a991 (diff)
String=>OUString of svl's urihelper
Change-Id: Ib4d9175ce4661140a147962b8f45be40f800d85a
Diffstat (limited to 'basctl')
-rw-r--r--basctl/source/basicide/baside2b.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/basctl/source/basicide/baside2b.cxx b/basctl/source/basicide/baside2b.cxx
index 7d0e7b4433b3..e4d7350d232d 100644
--- a/basctl/source/basicide/baside2b.cxx
+++ b/basctl/source/basicide/baside2b.cxx
@@ -278,16 +278,16 @@ String EditorWindow::GetWordAtCursor()
const TextSelection& rSelection = pEditView->GetSelection();
const TextPaM& rSelStart = rSelection.GetStart();
const TextPaM& rSelEnd = rSelection.GetEnd();
- String aText = pTextEngine->GetText( rSelEnd.GetPara() );
+ OUString aText = pTextEngine->GetText( rSelEnd.GetPara() );
CharClass aClass( ::comphelper::getProcessComponentContext() , Application::GetSettings().GetLanguageTag() );
- xub_StrLen nSelStart = static_cast< xub_StrLen >( rSelStart.GetIndex() );
- xub_StrLen nSelEnd = static_cast< xub_StrLen >( rSelEnd.GetIndex() );
- xub_StrLen nLength = static_cast< xub_StrLen >( aText.Len() );
- xub_StrLen nStart = 0;
- xub_StrLen nEnd = nLength;
+ sal_Int32 nSelStart = rSelStart.GetIndex();
+ sal_Int32 nSelEnd = rSelEnd.GetIndex();
+ sal_Int32 nLength = aText.getLength();
+ sal_Int32 nStart = 0;
+ sal_Int32 nEnd = nLength;
while ( nStart < nLength )
{
- String aURL( URIHelper::FindFirstURLInText( aText, nStart, nEnd, aClass ) );
+ OUString aURL( URIHelper::FindFirstURLInText( aText, nStart, nEnd, aClass ) );
INetURLObject aURLObj( aURL );
if ( aURLObj.GetProtocol() == INET_PROT_VND_SUN_STAR_HELP
&& nSelStart >= nStart && nSelStart <= nEnd && nSelEnd >= nStart && nSelEnd <= nEnd )