diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2013-07-05 16:25:03 -0500 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2013-07-07 20:00:16 +0000 |
commit | 009851223b5ced4ed2662af2e2ae81c0f9200e45 (patch) | |
tree | a8ab339589ea23b98513d394eabc4f135e69ccae /svl/source/svdde/ddedata.cxx | |
parent | 35b42a9d1282a92dbc9a7fbc51d279812070688c (diff) |
module svl: all String and some bool and related clean-up
Change-Id: I36eb559fa58dbe75384b7119c788af0048813aed
Reviewed-on: https://gerrit.libreoffice.org/4733
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
Diffstat (limited to 'svl/source/svdde/ddedata.cxx')
-rw-r--r-- | svl/source/svdde/ddedata.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/svl/source/svdde/ddedata.cxx b/svl/source/svdde/ddedata.cxx index 4b4c051a8ca3..4c9e465f572f 100644 --- a/svl/source/svdde/ddedata.cxx +++ b/svl/source/svdde/ddedata.cxx @@ -55,12 +55,12 @@ DdeData::DdeData( const void* p, long n, sal_uLong f ) // --- DdeData::DdeData() ------------------------------------------ -DdeData::DdeData( const String& s ) +DdeData::DdeData( const OUString& s ) { pImp = new DdeDataImp; pImp->hData = NULL; - pImp->pData = (LPBYTE)s.GetBuffer(); - pImp->nData = s.Len()+1; + pImp->pData = (LPBYTE)s.getStr(); + pImp->nData = s.getLength()+1; pImp->nFmt = CF_TEXT; } @@ -151,9 +151,9 @@ sal_uLong DdeData::GetExternalFormat( sal_uLong nFmt ) default: { #if defined(WNT) - String aName( SotExchange::GetFormatName( nFmt ) ); - if( aName.Len() ) - nFmt = RegisterClipboardFormat( reinterpret_cast<LPCWSTR>(aName.GetBuffer()) ); + OUString aName( SotExchange::GetFormatName( nFmt ) ); + if( !aName.isEmpty() ) + nFmt = RegisterClipboardFormat( reinterpret_cast<LPCWSTR>(aName.getStr()) ); #endif } } |