diff options
Diffstat (limited to 'svl/source/svdde/ddedata.cxx')
-rw-r--r-- | svl/source/svdde/ddedata.cxx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/svl/source/svdde/ddedata.cxx b/svl/source/svdde/ddedata.cxx index 44817c3d03d8..5ee335ee67ec 100644 --- a/svl/source/svdde/ddedata.cxx +++ b/svl/source/svdde/ddedata.cxx @@ -22,8 +22,6 @@ // Format numbers to be the same! If that's not the case, we need to // adapt the code here. The implementation uses the conversions here. -#define UNICODE - #include <string.h> #include "ddeimp.hxx" #include <svl/svdde.hxx> @@ -136,7 +134,7 @@ sal_uLong DdeData::GetExternalFormat(SotClipboardFormatId nFmt) #if defined(_WIN32) OUString aName( SotExchange::GetFormatName( nFmt ) ); if( !aName.isEmpty() ) - return RegisterClipboardFormat( reinterpret_cast<LPCWSTR>(aName.getStr()) ); + return RegisterClipboardFormatW( SAL_W(aName.getStr()) ); #endif } } @@ -157,10 +155,10 @@ SotClipboardFormatId DdeData::GetInternalFormat(sal_uLong nFmt) #if defined(_WIN32) if( nFmt >= CF_MAX ) { - TCHAR szName[ 256 ]; + WCHAR szName[ 256 ]; - if(GetClipboardFormatName( nFmt, szName, sizeof(szName) )) - return SotExchange::RegisterFormatName( OUString(reinterpret_cast<const sal_Unicode*>(szName)) ); + if(GetClipboardFormatNameW( nFmt, szName, SAL_N_ELEMENTS(szName) )) + return SotExchange::RegisterFormatName( SAL_U(szName) ); } #endif break; |