summaryrefslogtreecommitdiff
path: root/connectivity/source/commontools/TIndexColumns.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-06-20 09:26:05 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-06-20 11:54:20 +0200
commit8ed77fae3e5e9e5f7409e03d5e4586f428a65c86 (patch)
treee4dea7abf2deced1aeb88eb8b570a75271cb9150 /connectivity/source/commontools/TIndexColumns.cxx
parent4d7054947d87174decf12ad204c09532f33599f8 (diff)
loplugin:oncevar in codemaker..connectivity
Change-Id: Ia479d9d3d459a699dfc5c1148d01c35e8bc973bd Reviewed-on: https://gerrit.libreoffice.org/39000 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'connectivity/source/commontools/TIndexColumns.cxx')
-rw-r--r--connectivity/source/commontools/TIndexColumns.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/connectivity/source/commontools/TIndexColumns.cxx b/connectivity/source/commontools/TIndexColumns.cxx
index fcddb7f4caec..2d83fa7b2908 100644
--- a/connectivity/source/commontools/TIndexColumns.cxx
+++ b/connectivity/source/commontools/TIndexColumns.cxx
@@ -60,11 +60,10 @@ sdbcx::ObjectType OIndexColumns::createObject(const OUString& _rName)
if ( xResult.is() )
{
Reference< XRow > xRow(xResult,UNO_QUERY);
- OUString aD("D");
while( xResult->next() )
{
if(xRow->getString(9) == _rName)
- bAsc = xRow->getString(10) != aD;
+ bAsc = xRow->getString(10) != "D";
}
}