[Libreoffice-commits] .: sot/source

Julien Nabet serval2412 at kemper.freedesktop.org
Sun Dec 11 04:46:00 PST 2011


 sot/source/base/formats.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 4046a1dfc2ba5b52cab7083f4817351c647a59c3
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Sun Dec 11 13:45:53 2011 +0100

    Remove ByteString

diff --git a/sot/source/base/formats.cxx b/sot/source/base/formats.cxx
index 2bfa066..1c5ec07 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" );
                                 }
                             }
                         }


More information about the Libreoffice-commits mailing list