[Libreoffice-commits] core.git: svtools/source
Noel Grandin
noel at peralex.com
Thu Aug 15 00:58:08 PDT 2013
svtools/source/control/inettbc.cxx | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit 1e379e3c9aa62c6cf46c32175d5e8c9d4f4bca09
Author: Noel Grandin <noel at peralex.com>
Date: Thu Aug 15 09:56:27 2013 +0200
fix Windows build after my String->OUString changes
Change-Id: Id3ae8e34fa8ca8c7a47ddaa9cf5183fec48457fa
diff --git a/svtools/source/control/inettbc.cxx b/svtools/source/control/inettbc.cxx
index d56688d..f2bc0ab 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
More information about the Libreoffice-commits
mailing list