summaryrefslogtreecommitdiff
path: root/mysqlc
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-05-28 12:50:02 +0200
committerNoel Grandin <noel@peralex.com>2014-05-29 09:01:40 +0200
commitebc0a15515c2e29259a7e229cfbdfb5d26fc3006 (patch)
tree2ce9446ed312a1a7aed53183b19ecc9fefabea8a /mysqlc
parentf0ae48b684e89acd7088c31a8feff5fc03d51105 (diff)
remove more unnecesary OUString constructor use
when throwing exceptions Change-Id: I6edfb6b6745499f802b0e3c0e096a36fb7c32aac
Diffstat (limited to 'mysqlc')
-rw-r--r--mysqlc/source/mysqlc_connection.cxx2
-rw-r--r--mysqlc/source/mysqlc_driver.cxx8
2 files changed, 5 insertions, 5 deletions
diff --git a/mysqlc/source/mysqlc_connection.cxx b/mysqlc/source/mysqlc_connection.cxx
index 65bfd2e88de5..c3643faa045f 100644
--- a/mysqlc/source/mysqlc_connection.cxx
+++ b/mysqlc/source/mysqlc_connection.cxx
@@ -209,7 +209,7 @@ void OConnection::construct(const OUString& url, const Sequence< PropertyValue >
// Check if the server is 4.1 or above
if (this->getMysqlVersion() < 40100) {
throw SQLException(
- OUString( "MariaDB LibreOffice Connector requires MySQL Server 4.1 or above" ),
+ "MariaDB LibreOffice Connector requires MySQL Server 4.1 or above",
*this,
OUString(),
0,
diff --git a/mysqlc/source/mysqlc_driver.cxx b/mysqlc/source/mysqlc_driver.cxx
index 1d35539b665f..343949dfe920 100644
--- a/mysqlc/source/mysqlc_driver.cxx
+++ b/mysqlc/source/mysqlc_driver.cxx
@@ -144,7 +144,7 @@ void MysqlCDriver::impl_initCppConn_lck_throw()
{
OSL_FAIL( "MysqlCDriver::impl_initCppConn_lck_throw: could not load the " BUNDLE_MARIADB " library!");
throw SQLException(
- OUString( "Unable to load the " BUNDLE_MARIADB " library." ),
+ "Unable to load the " BUNDLE_MARIADB " library.",
*this,
OUString( "08001" ), // "unable to connect"
0,
@@ -164,7 +164,7 @@ void MysqlCDriver::impl_initCppConn_lck_throw()
{
OSL_FAIL( "MysqlCDriver::impl_initCppConn_lck_throw: could not load the " CPPCONN_LIB " library!");
throw SQLException(
- OUString( "Unable to load the " CPPCONN_LIB " library." ),
+ "Unable to load the " CPPCONN_LIB " library.",
*this,
OUString( "08001" ), // "unable to connect"
0,
@@ -181,7 +181,7 @@ void MysqlCDriver::impl_initCppConn_lck_throw()
{
OSL_FAIL( "MysqlCDriver::impl_initCppConn_lck_throw: could not find the factory symbol in " CPPCONN_LIB "!");
throw SQLException(
- OUString( CPPCONN_LIB " is invalid: missing the driver factory function." ),
+ CPPCONN_LIB " is invalid: missing the driver factory function.",
*this,
OUString( "08001" ), // "unable to connect"
0,
@@ -194,7 +194,7 @@ void MysqlCDriver::impl_initCppConn_lck_throw()
if ( !cppDriver )
{
throw SQLException(
- OUString( "Unable to obtain the MySQL_Driver instance from Connector/C++." ),
+ "Unable to obtain the MySQL_Driver instance from Connector/C++.",
*this,
OUString( "08001" ), // "unable to connect"
0,