summaryrefslogtreecommitdiff
path: root/sot/source/sdstor/storinfo.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-06-20 23:57:47 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-06-21 15:07:52 +0100
commitc3f2401d49b1374431da54e799a23bc122c5def7 (patch)
tree81ea39989af360ca879c7a84e7b1643698255589 /sot/source/sdstor/storinfo.cxx
parent3d506e814719ecaa5862663bce467994ccf31a4d (diff)
reduce scope and replace some String::CreateFromAscii
Change-Id: I8c375e3bfbcd3d7046a8bdb1968934b7d7ca96f8
Diffstat (limited to 'sot/source/sdstor/storinfo.cxx')
-rw-r--r--sot/source/sdstor/storinfo.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sot/source/sdstor/storinfo.cxx b/sot/source/sdstor/storinfo.cxx
index d3a84809f423..b0be41e9a295 100644
--- a/sot/source/sdstor/storinfo.cxx
+++ b/sot/source/sdstor/storinfo.cxx
@@ -47,7 +47,7 @@ sal_uLong ReadClipboardFormat( SvStream & rStm )
sal_Char * p = new sal_Char[ nLen ];
if( rStm.Read( p, nLen ) == (sal_uLong) nLen )
{
- nFormat = SotExchange::RegisterFormatName( String::CreateFromAscii( p, short(nLen-1) ) );
+ nFormat = SotExchange::RegisterFormatName(rtl::OUString(p, nLen-1, RTL_TEXTENCODING_ASCII_US));
}
else
rStm.SetError( SVSTREAM_GENERALERROR );