summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--svl/source/svdde/ddeimp.hxx1
-rw-r--r--svl/source/svdde/ddestrg.cxx9
2 files changed, 1 insertions, 9 deletions
diff --git a/svl/source/svdde/ddeimp.hxx b/svl/source/svdde/ddeimp.hxx
index e5029780eb57..b891a1509476 100644
--- a/svl/source/svdde/ddeimp.hxx
+++ b/svl/source/svdde/ddeimp.hxx
@@ -62,7 +62,6 @@ protected:
DWORD hInst;
public:
- DdeString( DWORD, const sal_Unicode* );
DdeString( DWORD, const OUString& );
~DdeString();
diff --git a/svl/source/svdde/ddestrg.cxx b/svl/source/svdde/ddestrg.cxx
index 366e6ada7cf7..841c3d7e8e28 100644
--- a/svl/source/svdde/ddestrg.cxx
+++ b/svl/source/svdde/ddestrg.cxx
@@ -23,17 +23,10 @@
#include "ddeimp.hxx"
#include <svl/svdde.hxx>
-DdeString::DdeString( DWORD hDdeInst, const sal_Unicode* p )
- : m_aString(p)
-{
- hString = DdeCreateStringHandle( hDdeInst, SAL_W(p), CP_WINUNICODE );
- hInst = hDdeInst;
-}
-
DdeString::DdeString( DWORD hDdeInst, const OUString& r)
: m_aString(r)
{
- hString = DdeCreateStringHandle( hDdeInst, SAL_W(r.getStr()), CP_WINUNICODE );
+ hString = DdeCreateStringHandle( hDdeInst, reinterpret_cast<wchar_t const *>(r.getStr()), CP_WINUNICODE );
hInst = hDdeInst;
}