Kaydet (Commit) 49300975 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:salunicodeliteral: dbaccess

Change-Id: I294909d2596283a3249cd77c03c8e5518fdf32fb
üst effd780d
......@@ -314,7 +314,7 @@ OUString ODsnTypeCollection::getEmbeddedDatabase() const
DATASOURCE_TYPE ODsnTypeCollection::determineType(const OUString& _rDsn) const
{
OUString sDsn(comphelper::string::stripEnd(_rDsn, '*'));
sal_Int32 nSeparator = sDsn.indexOf(static_cast<sal_Unicode>(':'));
sal_Int32 nSeparator = sDsn.indexOf(u':');
if (-1 == nSeparator)
{
if (!sDsn.isEmpty())
......@@ -340,7 +340,7 @@ DATASOURCE_TYPE ODsnTypeCollection::determineType(const OUString& _rDsn) const
return DST_EMBEDDED_FIREBIRD;
// find second :
nSeparator = sDsn.indexOf(static_cast<sal_Unicode>(':'), nSeparator + 1);
nSeparator = sDsn.indexOf(u':', nSeparator + 1);
if (-1 == nSeparator)
{
// at the moment only jdbc is allowed to have just one separator
......
......@@ -161,12 +161,12 @@ namespace sdbtools
static ::connectivity::ErrorCondition validateName_getErrorCondition( const OUString& _rName )
{
if ( ( _rName.indexOf( (sal_Unicode)34 ) >= 0 ) // "
|| ( _rName.indexOf( (sal_Unicode)39 ) >= 0 ) // '
|| ( _rName.indexOf( (sal_Unicode)96 ) >= 0 )
|| ( _rName.indexOf( (sal_Unicode)145 ) >= 0 )
|| ( _rName.indexOf( (sal_Unicode)146 ) >= 0 )
|| ( _rName.indexOf( (sal_Unicode)180 ) >= 0 ) // removed unparsable chars
if ( ( _rName.indexOf( u'"' ) >= 0 )
|| ( _rName.indexOf( u'\'' ) >= 0 )
|| ( _rName.indexOf( u'`' ) >= 0 )
|| ( _rName.indexOf( u'\x0091' ) >= 0 )
|| ( _rName.indexOf( u'\x0092' ) >= 0 )
|| ( _rName.indexOf( u'\x00B4' ) >= 0 ) // removed unparsable chars
)
return ErrorCondition::DB_QUERY_NAME_WITH_QUOTES;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment