diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-01-31 20:26:56 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-01-31 20:26:56 +0000 |
commit | b7dca5dd6635a8b21333d6bb2b6f88cf925b6d96 (patch) | |
tree | 5359f5cb3825dadd4c7a410584c0de6849429099 /svtools/source | |
parent | 6b6bbe539bf4c72773b280addc7150656f83713b (diff) |
convert windows only code
Diffstat (limited to 'svtools/source')
-rw-r--r-- | svtools/source/misc/transfer.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svtools/source/misc/transfer.cxx b/svtools/source/misc/transfer.cxx index 519dcc785f21..c4418392c73e 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; } |