diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-10 12:42:24 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-10 15:53:13 +0200 |
commit | 43a6b59539ad573436f43303e9fbe17c12dc9c84 (patch) | |
tree | 24cbf3a9fc84ad38e17ed92ed0a50db48f20f2c5 /connectivity | |
parent | f2a1298ea409141a9190c7789b39546644084980 (diff) |
simplify some OUString compareTo calls
to either startsWith or == or !=
Change-Id: Ie4b4662f5b8e4532cbc1ab36910389e0b3d41ef0
Reviewed-on: https://gerrit.libreoffice.org/39750
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/drivers/firebird/DatabaseMetaData.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/connectivity/source/drivers/firebird/DatabaseMetaData.cxx b/connectivity/source/drivers/firebird/DatabaseMetaData.cxx index db6609f722ee..802316fa84dc 100644 --- a/connectivity/source/drivers/firebird/DatabaseMetaData.cxx +++ b/connectivity/source/drivers/firebird/DatabaseMetaData.cxx @@ -1513,9 +1513,9 @@ uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getImportedKeys( // deferrability is currently not supported, but may be supported in the future. /* - aCurrentRow[14] = (xRow->getString(5).compareTo(OUString("NO") == 0 ? + aCurrentRow[14] = (xRow->getString(5) == "NO" ? new ORowSetValueDecorator(Deferrability::NONE) - : (xRow->getString(6).compareTo(OUString("NO") == 0 ? + : (xRow->getString(6) == "NO" ? new ORowSetValueDecorator(Deferrability::INITIALLY_IMMEDIATE) : new ORowSetValueDecorator(Deferrability::INITIALLY_DEFERRED)); */ |