automated removal of RTL_CONSTASCII_USTRINGPARAM for quoted OUStrings
Done with a perl regex: s/OUString\s*\(\s*RTL_CONSTASCII_USTRINGPARAM\s*\((\s*"[^")]*?"\s*)\)\s*\)/OUString\($1\)/gms Change-Id: Idf28320817cdcbea6d0f7ec06a9bf51bd2c3b3ec Reviewed-on: https://gerrit.libreoffice.org/2832 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
This commit is contained in:
@@ -239,7 +239,7 @@ void bufferEscapeConstant( rtl::OUStringBuffer & buf, const rtl::OUString & valu
|
||||
// We have no good XInterface Reference to pass here, so just give NULL
|
||||
throw SQLException(OUString(errstr, strlen(errstr), settings->encoding),
|
||||
NULL,
|
||||
OUString(RTL_CONSTASCII_USTRINGPARAM("22018")),
|
||||
OUString("22018"),
|
||||
-1,
|
||||
Any());
|
||||
}
|
||||
@@ -285,7 +285,7 @@ static inline void ibufferQuoteIdentifier( rtl::OUStringBuffer & buf, const rtl:
|
||||
// Implementation-defined SQLACCESS error
|
||||
throw SQLException(OUString(errstr, strlen(errstr), settings->encoding),
|
||||
NULL,
|
||||
OUString(RTL_CONSTASCII_USTRINGPARAM("22018")),
|
||||
OUString("22018"),
|
||||
-1,
|
||||
Any());
|
||||
}
|
||||
|
Reference in New Issue
Block a user