summaryrefslogtreecommitdiff
path: root/svl/source/svdde/ddestrg.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-10-14 16:46:54 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-10-15 07:59:32 +0000
commit6e64342d34f97db9dcb70426d44c0fb5efec4fc0 (patch)
tree8dff9a366d5915aa135e6ca57b53a23319a56be8 /svl/source/svdde/ddestrg.cxx
parent0deb7d16f32b4c89260f6aac29fc29f4e5bd8261 (diff)
clang-cl loplugin: svl
The DdeInternal::Cli/SrvCallback functions apparently had broken signatures for 64-bit Windows (32-bit DWORD vs. 64-bit ULONG_PTR parameters), but I assume that was actually harmless, as I think that, for Windows x86-64, those arguments are pushed on the stack right-to-left (regardless of CALLBACK), and they are the last arguments, and SrvCallback doesn't look at them at all, and CliCallback only looks at the lower 32-bit DWORD of the first one (nInfo1). Change-Id: Id77749dd2d29180e2d11b0ae2ad248ac1a7f1bdf Reviewed-on: https://gerrit.libreoffice.org/29848 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'svl/source/svdde/ddestrg.cxx')
-rw-r--r--svl/source/svdde/ddestrg.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/svl/source/svdde/ddestrg.cxx b/svl/source/svdde/ddestrg.cxx
index e224b83a6596..cebc93560246 100644
--- a/svl/source/svdde/ddestrg.cxx
+++ b/svl/source/svdde/ddestrg.cxx
@@ -26,14 +26,14 @@
DdeString::DdeString( DWORD hDdeInst, const sal_Unicode* p )
: m_aString(p)
{
- hString = DdeCreateStringHandle( hDdeInst, (LPTSTR)p, CP_WINUNICODE );
+ hString = DdeCreateStringHandle( hDdeInst, p, CP_WINUNICODE );
hInst = hDdeInst;
}
DdeString::DdeString( DWORD hDdeInst, const OUString& r)
: m_aString(r)
{
- hString = DdeCreateStringHandle( hDdeInst, (LPTSTR)r.getStr(), CP_WINUNICODE );
+ hString = DdeCreateStringHandle( hDdeInst, r.getStr(), CP_WINUNICODE );
hInst = hDdeInst;
}
@@ -43,7 +43,7 @@ DdeString::~DdeString()
DdeFreeStringHandle( hInst, hString );
}
-int DdeString::operator==( HSZ h )
+bool DdeString::operator==( HSZ h )
{
return( !DdeCmpStringHandles( hString, h ) );
}