From 773a07a94ebc9f578b5bb6a90ddd1974d1577351 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 16 Nov 2015 08:34:54 +0200 Subject: fix mysqlc build after my commit 96c26b0d9d10fa9bac3695222980d7145f0342d7 "use initialiser for Sequence" the mysqlc module is compiled as external code, so it cannot see the initialiser syntax constructor for Sequence Change-Id: I072e6271ec33637e28dd8225724296e90967329d --- 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(-) (limited to 'mysqlc') diff --git a/mysqlc/source/mysqlc_connection.cxx b/mysqlc/source/mysqlc_connection.cxx index 44cee42733dc..5c3fd7c2cb59 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 OConnection::getSupportedServiceNames() throw (css::uno::RuntimeException, std::exception) { - css::uno::Sequence s { "com.sun.star.sdbc.Connection" }; + css::uno::Sequence 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 ce2c363fb74a..3a31685d9c2e 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 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 cfc304233e8b..96d756f3ef4d 100644 --- a/mysqlc/source/mysqlc_preparedstatement.cxx +++ b/mysqlc/source/mysqlc_preparedstatement.cxx @@ -66,7 +66,8 @@ rtl::OUString OPreparedStatement::getImplementationName() css::uno::Sequence OPreparedStatement::getSupportedServiceNames() throw (css::uno::RuntimeException, std::exception) { - css::uno::Sequence s { "com.sun.star.sdbc.PreparedStatement" }; + css::uno::Sequence 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 d9e58b0784e9..859f7a929a82 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 OStatement::getSupportedServiceNames() throw (css::uno::RuntimeException, std::exception) { - css::uno::Sequence s { "com.sun.star.sdbc.Statement" }; + css::uno::Sequence s(1); + s[0] = "com.sun.star.sdbc.Statement"; return s; } -- cgit