From 2630d44085ae3d5eb5ae10c9588a92635ed43b2e Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 26 Nov 2015 11:22:25 +0100 Subject: 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 --- connectivity/source/drivers/ado/AView.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'connectivity') 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; -- cgit