diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2013-03-19 11:39:07 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2013-03-19 10:48:30 +0000 |
commit | 39d45390f4fab1e9e85f211d74ed2c08fda5b652 (patch) | |
tree | ac4b224a66a18429cd4722a61ee3d401f8e9951c /mysqlc | |
parent | 5c908d0431ee975c1ee7aa245af83b9eb7f95da6 (diff) |
removal of RTL_CONSTASCII_USTRINGPARAM for quoted OUStrings declarations
s/(OUString\s+[a-zA-Z_][A-Za-z0-9_]*\s*)\(\s*RTL_CONSTASCII_USTRINGPARAM\s*\((\s*"[^")]*?"\s*)\)\s*\)/$1\($2\)/gms
Change-Id: Iad20f242c80c4bdc69df17e2d7a69d58ea53654b
Reviewed-on: https://gerrit.libreoffice.org/2835
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
Diffstat (limited to 'mysqlc')
-rw-r--r-- | mysqlc/source/mysqlc_databasemetadata.cxx | 4 | ||||
-rw-r--r-- | mysqlc/source/mysqlc_preparedstatement.cxx | 2 | ||||
-rw-r--r-- | mysqlc/source/mysqlc_resultset.cxx | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/mysqlc/source/mysqlc_databasemetadata.cxx b/mysqlc/source/mysqlc_databasemetadata.cxx index 22e94a0a983e..45b49f9e4ec0 100644 --- a/mysqlc/source/mysqlc_databasemetadata.cxx +++ b/mysqlc/source/mysqlc_databasemetadata.cxx @@ -1118,7 +1118,7 @@ OUString SAL_CALL ODatabaseMetaData::getDriverName() throw(SQLException, RuntimeException) { OSL_TRACE("ODatabaseMetaData::getDriverName"); - OUString aValue( RTL_CONSTASCII_USTRINGPARAM( "MySQL Connector/OO.org" ) ); + OUString aValue( "MySQL Connector/OO.org" ); return aValue; } /* }}} */ @@ -1129,7 +1129,7 @@ OUString SAL_CALL ODatabaseMetaData::getDriverVersion() throw(SQLException, RuntimeException) { OSL_TRACE("ODatabaseMetaData::getDriverVersion"); - static const OUString sVersion( RTL_CONSTASCII_USTRINGPARAM( "0.9.2" ) ); + static const OUString sVersion( "0.9.2" ); return sVersion; } /* }}} */ diff --git a/mysqlc/source/mysqlc_preparedstatement.cxx b/mysqlc/source/mysqlc_preparedstatement.cxx index dc0ebc06facf..774ac5810067 100644 --- a/mysqlc/source/mysqlc_preparedstatement.cxx +++ b/mysqlc/source/mysqlc_preparedstatement.cxx @@ -921,7 +921,7 @@ void OPreparedStatement::checkParameterIndex(sal_Int32 column) { OSL_TRACE("OPreparedStatement::checkColumnIndex"); if (column < 1 || column > (sal_Int32) m_paramCount) { - OUString buf( RTL_CONSTASCII_USTRINGPARAM( "Parameter index out of range" ) ); + OUString buf( "Parameter index out of range" ); throw SQLException(buf, *this, OUString(), 1, Any ()); } } diff --git a/mysqlc/source/mysqlc_resultset.cxx b/mysqlc/source/mysqlc_resultset.cxx index c428dd7ab2ca..5e5161e1fb5e 100644 --- a/mysqlc/source/mysqlc_resultset.cxx +++ b/mysqlc/source/mysqlc_resultset.cxx @@ -1487,7 +1487,7 @@ void OResultSet::checkColumnIndex(sal_Int32 index) OSL_TRACE("OResultSet::checkColumnIndex"); if ((index < 1 || index > (int) fieldCount)) { /* static object for efficiency or thread safety is a problem ? */ - OUString buf( RTL_CONSTASCII_USTRINGPARAM( "index out of range" ) ); + OUString buf( "index out of range" ); throw SQLException(buf, *this, OUString(), 1, Any()); } } |