summaryrefslogtreecommitdiff
path: root/connectivity/source/commontools/TSortIndex.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'connectivity/source/commontools/TSortIndex.cxx')
-rw-r--r--connectivity/source/commontools/TSortIndex.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/connectivity/source/commontools/TSortIndex.cxx b/connectivity/source/commontools/TSortIndex.cxx
index 0d0e97a40d10..454cf06e5630 100644
--- a/connectivity/source/commontools/TSortIndex.cxx
+++ b/connectivity/source/commontools/TSortIndex.cxx
@@ -40,7 +40,7 @@ struct TKeyValueFunc : ::std::binary_function<OSortIndex::TIntValuePairVector::v
::std::vector<OKeyType>::const_iterator aIter = aKeyType.begin();
for (::std::vector<sal_Int16>::size_type i=0;aIter != aKeyType.end(); ++aIter,++i)
{
- const bool nGreater = (pIndex->getAscending(i) == SQL_ASC) ? false : true;
+ const bool nGreater = pIndex->getAscending(i) != SQL_ASC;
const bool nLess = !nGreater;
// compare depending for type