[Libreoffice-commits] core.git: mysqlc/source
Noel Grandin
noel at peralex.com
Sun Nov 15 22:40:25 PST 2015
mysqlc/source/mysqlc_connection.cxx | 3 ++-
mysqlc/source/mysqlc_driver.cxx | 3 ++-
mysqlc/source/mysqlc_preparedstatement.cxx | 3 ++-
mysqlc/source/mysqlc_statement.cxx | 3 ++-
4 files changed, 8 insertions(+), 4 deletions(-)
New commits:
commit 773a07a94ebc9f578b5bb6a90ddd1974d1577351
Author: Noel Grandin <noel at peralex.com>
Date: Mon Nov 16 08:34:54 2015 +0200
fix mysqlc build
after my commit 96c26b0d9d10fa9bac3695222980d7145f0342d7
"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
diff --git a/mysqlc/source/mysqlc_connection.cxx b/mysqlc/source/mysqlc_connection.cxx
index 44cee42..5c3fd7c 100644
--- a/mysqlc/source/mysqlc_connection.cxx
+++ b/mysqlc/source/mysqlc_connection.cxx
@@ -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;
}
diff --git a/mysqlc/source/mysqlc_driver.cxx b/mysqlc/source/mysqlc_driver.cxx
index ce2c363..3a31685 100644
--- a/mysqlc/source/mysqlc_driver.cxx
+++ b/mysqlc/source/mysqlc_driver.cxx
@@ -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;
}
diff --git a/mysqlc/source/mysqlc_preparedstatement.cxx b/mysqlc/source/mysqlc_preparedstatement.cxx
index cfc3042..96d756f 100644
--- a/mysqlc/source/mysqlc_preparedstatement.cxx
+++ b/mysqlc/source/mysqlc_preparedstatement.cxx
@@ -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;
}
diff --git a/mysqlc/source/mysqlc_statement.cxx b/mysqlc/source/mysqlc_statement.cxx
index d9e58b0..859f7a9 100644
--- a/mysqlc/source/mysqlc_statement.cxx
+++ b/mysqlc/source/mysqlc_statement.cxx
@@ -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;
}
More information about the Libreoffice-commits
mailing list