From ad6f9f2f00df27eec2fc6e640eb1a662644de6a4 Mon Sep 17 00:00:00 2001 From: Norbert Thiebaud Date: Mon, 26 Nov 2012 11:03:24 -0600 Subject: String=>OUString of svl's urihelper Change-Id: Ib4d9175ce4661140a147962b8f45be40f800d85a --- basctl/source/basicide/baside2b.cxx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'basctl') 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 ) -- cgit