summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorStefan Heinemann <stefan.heinemann@codedump.ch>2015-09-25 13:06:09 +0200
committerMichael Stahl <mstahl@redhat.com>2015-09-29 18:33:40 +0000
commitc50eb68af3096645246a77259bb3d1cc70eb6b63 (patch)
treea3f9442fa2d2c13464d1623f8bcf772b27426e72 /connectivity
parent491c2e24ac110c9ebdb1a483c34ae3d14ab0d615 (diff)
Renamed wrongly prefixed boolean variables
Fixed tdf#94269 Change-Id: I63109cc4e095bad680d7637a065080ea368860ae Reviewed-on: https://gerrit.libreoffice.org/18851 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/commontools/TSortIndex.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/connectivity/source/commontools/TSortIndex.cxx b/connectivity/source/commontools/TSortIndex.cxx
index 11638feb4905..09c58ed1dc3c 100644
--- a/connectivity/source/commontools/TSortIndex.cxx
+++ b/connectivity/source/commontools/TSortIndex.cxx
@@ -39,8 +39,8 @@ 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;
- const bool nLess = !nGreater;
+ const bool bGreater = pIndex->getAscending(i) != SQL_ASC;
+ const bool bLess = !bGreater;
// compare depending for type
switch (*aIter)
@@ -49,9 +49,9 @@ struct TKeyValueFunc : ::std::binary_function<OSortIndex::TIntValuePairVector::v
{
sal_Int32 nRes = lhs.second->getKeyString(i).compareTo(rhs.second->getKeyString(i));
if (nRes < 0)
- return nLess;
+ return bLess;
else if (nRes > 0)
- return nGreater;
+ return bGreater;
}
break;
case SQL_ORDERBYKEY_DOUBLE:
@@ -60,9 +60,9 @@ struct TKeyValueFunc : ::std::binary_function<OSortIndex::TIntValuePairVector::v
double d2 = rhs.second->getKeyDouble(i);
if (d1 < d2)
- return nLess;
+ return bLess;
else if (d1 > d2)
- return nGreater;
+ return bGreater;
}
break;
case SQL_ORDERBYKEY_NONE: