[Libreoffice-commits] .: svtools/source
Caolán McNamara
caolan at kemper.freedesktop.org
Tue Jan 31 12:27:01 PST 2012
svtools/source/misc/transfer.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit b7dca5dd6635a8b21333d6bb2b6f88cf925b6d96
Author: Caolán McNamara <caolanm at redhat.com>
Date: Tue Jan 31 20:26:56 2012 +0000
convert windows only code
diff --git a/svtools/source/misc/transfer.cxx b/svtools/source/misc/transfer.cxx
index 519dcc7..c441839 100644
--- a/svtools/source/misc/transfer.cxx
+++ b/svtools/source/misc/transfer.cxx
@@ -2008,7 +2008,7 @@ sal_Bool TransferableDataHelper::GetINetBookmark( const ::com::sun::star::datatr
rtl::OString aDesc( pFDesc->fgd[ 0 ].cFileName );
rtl_TextEncoding eTextEncoding = osl_getThreadTextEncoding();
- if( ( aDesc.getLength() > 4 ) && aDesc.copy(aDesc.Len() - 4).equalsIgnoreAsciiCaseL(RTL_CONSTASCII_STRINGPARAM(".URL")) )
+ if( ( aDesc.getLength() > 4 ) && aDesc.copy(aDesc.getLength() - 4).equalsIgnoreAsciiCaseL(RTL_CONSTASCII_STRINGPARAM(".URL")) )
{
SvStream* pStream = ::utl::UcbStreamHelper::CreateStream( INetURLObject( String( aDesc, eTextEncoding ) ).GetMainURL( INetURLObject::NO_DECODE ),
STREAM_STD_READ );
@@ -2041,7 +2041,7 @@ sal_Bool TransferableDataHelper::GetINetBookmark( const ::com::sun::star::datatr
else if (bSttFnd && aLine.copy(0, 4).equalsIgnoreAsciiCaseL(RTL_CONSTASCII_STRINGPARAM("URL=")))
{
rBmk = INetBookmark( String( aLine.copy(4), eTextEncoding ),
- String( aDesc.Erase( aDesc.Len() - 4 ), eTextEncoding ) );
+ String( aDesc.copy(0, aDesc.getLength() - 4), eTextEncoding ) );
bRet = sal_True;
break;
}
More information about the Libreoffice-commits
mailing list