Kaydet (Commit) 773a07a9 authored tarafından Noel Grandin's avatar Noel Grandin

fix mysqlc build

after my commit 96c26b0d
"use initialiser for Sequence<OUString>"

the mysqlc module is compiled as external code, so it
cannot see the initialiser syntax constructor for Sequence

Change-Id: I072e6271ec33637e28dd8225724296e90967329d
üst 1ba6f9ca
......@@ -219,7 +219,8 @@ rtl::OUString OConnection::getImplementationName() throw (css::uno::RuntimeExcep
css::uno::Sequence<rtl::OUString> OConnection::getSupportedServiceNames()
throw (css::uno::RuntimeException, std::exception)
{
css::uno::Sequence<OUString> s { "com.sun.star.sdbc.Connection" };
css::uno::Sequence<rtl::OUString> s(1);
s[0] = "com.sun.star.sdbc.Connection";
return s;
}
......
......@@ -85,7 +85,8 @@ Sequence< rtl::OUString > MysqlCDriver::getSupportedServiceNames_Static()
OSL_TRACE("MysqlCDriver::getSupportedServiceNames_Static");
// which service is supported
// for more information @see com.sun.star.sdbc.Driver
Sequence<OUString> aSNS { "com.sun.star.sdbc.Driver" };
Sequence< rtl::OUString > aSNS(1);
aSNS[0] = "com.sun.star.sdbc.Driver";
return aSNS;
}
......
......@@ -66,7 +66,8 @@ rtl::OUString OPreparedStatement::getImplementationName()
css::uno::Sequence<rtl::OUString> OPreparedStatement::getSupportedServiceNames()
throw (css::uno::RuntimeException, std::exception)
{
css::uno::Sequence<OUString> s { "com.sun.star.sdbc.PreparedStatement" };
css::uno::Sequence<rtl::OUString> s(1);
s[0] = "com.sun.star.sdbc.PreparedStatement";
return s;
}
......
......@@ -392,7 +392,8 @@ rtl::OUString OStatement::getImplementationName() throw (css::uno::RuntimeExcept
css::uno::Sequence<rtl::OUString> OStatement::getSupportedServiceNames()
throw (css::uno::RuntimeException, std::exception)
{
css::uno::Sequence<OUString> s { "com.sun.star.sdbc.Statement" };
css::uno::Sequence<rtl::OUString> s(1);
s[0] = "com.sun.star.sdbc.Statement";
return s;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment