diff options
Diffstat (limited to 'sot')
-rw-r--r-- | sot/source/sdstor/stgole.cxx | 2 | ||||
-rw-r--r-- | sot/source/sdstor/storinfo.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sot/source/sdstor/stgole.cxx b/sot/source/sdstor/stgole.cxx index 62c586a20773..3ae8fe4209ec 100644 --- a/sot/source/sdstor/stgole.cxx +++ b/sot/source/sdstor/stgole.cxx @@ -114,7 +114,7 @@ bool StgCompObjStream::Load() // higher bits are ignored sal_uLong nStrLen = ::std::min( nLen1, sal_Int32(0xFFFE) ); - std::unique_ptr<sal_Char[]> p(new sal_Char[ nStrLen+1 ]); + std::unique_ptr<char[]> p(new char[ nStrLen+1 ]); p[nStrLen] = 0; if (ReadBytes( p.get(), nStrLen ) == nStrLen) { diff --git a/sot/source/sdstor/storinfo.cxx b/sot/source/sdstor/storinfo.cxx index adbcba212828..d8480e86a459 100644 --- a/sot/source/sdstor/storinfo.cxx +++ b/sot/source/sdstor/storinfo.cxx @@ -36,7 +36,7 @@ SotClipboardFormatId ReadClipboardFormat( SvStream & rStm ) if( nLen > 0 ) { // get a string name - std::unique_ptr<sal_Char[]> p(new( ::std::nothrow ) sal_Char[ nLen ]); + std::unique_ptr<char[]> p(new( ::std::nothrow ) char[ nLen ]); if (p && rStm.ReadBytes(p.get(), nLen) == static_cast<std::size_t>(nLen)) { nFormat = SotExchange::RegisterFormatName(OUString(p.get(), nLen-1, RTL_TEXTENCODING_ASCII_US)); |