From 4046a1dfc2ba5b52cab7083f4817351c647a59c3 Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Sun, 11 Dec 2011 13:45:53 +0100 Subject: Remove ByteString --- sot/source/base/formats.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sot') diff --git a/sot/source/base/formats.cxx b/sot/source/base/formats.cxx index 2bfa0661f4bf..1c5ec071939c 100644 --- a/sot/source/base/formats.cxx +++ b/sot/source/base/formats.cxx @@ -1325,8 +1325,7 @@ rEntry if( pFDesc->cItems ) { - ByteString sDesc( pFDesc->fgd[ 0 ].cFileName ); - bRet = 4 < sDesc.Len() && sDesc.Copy( sDesc.Len()-4 ).EqualsIgnoreCaseAscii( ".URL" ); + bRet = (4 < (pFDesc->fgd[ 0 ].cFileName.size())) && sDesc.Copy( sDesc.Len()-4 ).EqualsIgnoreCaseAscii( ".URL" ); } } } -- cgit