summaryrefslogtreecommitdiff
path: root/dbaccess/source/core/misc/dsntypes.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'dbaccess/source/core/misc/dsntypes.cxx')
-rw-r--r--dbaccess/source/core/misc/dsntypes.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/dbaccess/source/core/misc/dsntypes.cxx b/dbaccess/source/core/misc/dsntypes.cxx
index 57a8ee775501..daa0bc8f3487 100644
--- a/dbaccess/source/core/misc/dsntypes.cxx
+++ b/dbaccess/source/core/misc/dsntypes.cxx
@@ -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