summaryrefslogtreecommitdiff
path: root/svtools/source/control/inettbc.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-08-15 09:56:27 +0200
committerNoel Grandin <noel@peralex.com>2013-08-15 09:57:32 +0200
commit1e379e3c9aa62c6cf46c32175d5e8c9d4f4bca09 (patch)
treee3a6e6ac62e756acfc9f37002b5d4c9e364ba3aa /svtools/source/control/inettbc.cxx
parent5dc6b955e3b8b2ffd3f81d3c6f9e1afa90c5217e (diff)
fix Windows build after my String->OUString changes
Change-Id: Id3ae8e34fa8ca8c7a47ddaa9cf5183fec48457fa
Diffstat (limited to 'svtools/source/control/inettbc.cxx')
-rw-r--r--svtools/source/control/inettbc.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/svtools/source/control/inettbc.cxx b/svtools/source/control/inettbc.cxx
index d56688d8ecb0..f2bc0abce509 100644
--- a/svtools/source/control/inettbc.cxx
+++ b/svtools/source/control/inettbc.cxx
@@ -509,7 +509,7 @@ OUString SvtURLBox::ParseSmart( OUString aText, OUString aBaseURL, const OUStrin
// HRO: INetURLObject::smatRel2Abs does not recognize '\\' as a relative path
// but in case of "\\\\" INetURLObject is right - this is an absolute path !
- if( aText.Search( '\\' ) == 0 && (aText.Len() < 2 || aText.GetChar( 1 ) != '\\') )
+ if( aText.indexOf( '\\' ) == 0 && (aText.getLength() < 2 || aText[ 1 ] != '\\') )
{
// cut to first segment
String aTmp = INetURLObject::GetScheme( eBaseProt );
@@ -517,7 +517,7 @@ OUString SvtURLBox::ParseSmart( OUString aText, OUString aBaseURL, const OUStrin
aTmp += String(aObj.getName( 0, true, INetURLObject::DECODE_WITH_CHARSET ));
aObj.SetURL( aTmp );
- aSmart.Erase(0,1);
+ aSmart = aSmart.copy(1);
}
#endif
// base URL must be a directory !
@@ -1207,7 +1207,7 @@ OUString SvtURLBox::GetURL()
// erase trailing spaces on Windows since thay are invalid on this OS and
// most of the time they are inserted by accident via copy / paste
aText = comphelper::string::stripEnd(aText, ' ');
- if ( !aText.Len() )
+ if ( aText.isEmpty() )
return aText;
// #i9739#
#endif