summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-10-19 15:11:45 +0200
committerStephan Bergmann <sbergman@redhat.com>2020-10-19 22:01:31 +0200
commitc4cec8647faf130111d67302e75998ddff4c0792 (patch)
treead42b521fe2b671a93529cfa4211f271a893d439 /connectivity
parent3aef606f2758172a27718a06fea0ff9080e4d80f (diff)
clang-cl: Adapt Windows-specific code to extended loplugin:cstylecast
...after 1ebeacb20ad0165e399629fcfd7795ad0da3edf8 "Extend loplugin:cstylecast to certain function-style casts" Change-Id: I99bd383f5b3bee861d442d2e1be6ecd356b78315 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104523 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/ado/Aolevariant.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/connectivity/source/drivers/ado/Aolevariant.cxx b/connectivity/source/drivers/ado/Aolevariant.cxx
index f90a4ecc6ef2..ae7c3f30572c 100644
--- a/connectivity/source/drivers/ado/Aolevariant.cxx
+++ b/connectivity/source/drivers/ado/Aolevariant.cxx
@@ -80,7 +80,7 @@ OLEString& OLEString::operator=(const BSTR& _rSrc)
}
OUString OLEString::asOUString() const
{
- return (m_sStr != nullptr) ? OUString(o3tl::toU(LPCOLESTR(m_sStr)),::SysStringLen(m_sStr)) : OUString();
+ return (m_sStr != nullptr) ? OUString(o3tl::toU(m_sStr),::SysStringLen(m_sStr)) : OUString();
}
BSTR OLEString::asBSTR() const
{
@@ -378,7 +378,7 @@ void OLEVariant::set(double n)
OUString OLEVariant::getString() const
{
if (V_VT(this) == VT_BSTR)
- return OUString(o3tl::toU(LPCOLESTR(V_BSTR(this))));
+ return OUString(o3tl::toU(V_BSTR(this)));
if(isNull())
return OUString();
@@ -387,7 +387,7 @@ OUString OLEVariant::getString() const
varDest.ChangeType(VT_BSTR, this);
- return OUString(o3tl::toU(LPCOLESTR(V_BSTR(&varDest))));
+ return OUString(o3tl::toU(V_BSTR(&varDest)));
}