summaryrefslogtreecommitdiffstats
path: root/svtools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-01-31 20:26:56 +0000
committerCaolán McNamara <caolanm@redhat.com>2012-01-31 20:26:56 +0000
commitb7dca5dd6635a8b21333d6bb2b6f88cf925b6d96 (patch)
tree5359f5cb3825dadd4c7a410584c0de6849429099 /svtools
parentSWAPLONG->OSL_SWAPDWORD (diff)
downloadcore-b7dca5dd6635a8b21333d6bb2b6f88cf925b6d96.tar.gz
core-b7dca5dd6635a8b21333d6bb2b6f88cf925b6d96.zip
convert windows only code
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/misc/transfer.cxx4
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;
}