summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-11-26 11:22:25 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-11-28 08:44:44 +0100
commit2630d44085ae3d5eb5ae10c9588a92635ed43b2e (patch)
tree50ce119b3dfdf6f81c26bf5cb58a1dfdd66b7156 /connectivity
parentf470927e8542170d7c5a08bf16bcceeac1ad46ac (diff)
error: ambiguous conversion
...for C-style cast from 'connectivity::ado::OLEString' to 'rtl::OUString', as connectivity::ado::OLEString has conversion operators to both OUString and BSTR (i.e., wchar_t*), so both the OUString copy ctor and OUString(sal_Unicode const*) ctor match. At least MSVC 2013 happily compiles that without complaining, but clang-cl does. Change-Id: Ica634cf19c0fcf1dbff377cb503f6ea6c8257898
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/ado/AView.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/connectivity/source/drivers/ado/AView.cxx b/connectivity/source/drivers/ado/AView.cxx
index dba3c8e894e2..2c036cd468b7 100644
--- a/connectivity/source/drivers/ado/AView.cxx
+++ b/connectivity/source/drivers/ado/AView.cxx
@@ -89,7 +89,7 @@ void OAdoView::getFastPropertyValue(Any& rValue,sal_Int32 nHandle) const
ADOCommand* pCom = (ADOCommand*)aVar.getIDispatch();
OLEString aBSTR;
pCom->get_CommandText(&aBSTR);
- rValue <<= (OUString) aBSTR;
+ rValue <<= aBSTR.operator OUString();
}
}
break;