diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-02-17 08:12:58 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-02-17 09:56:19 +0200 |
commit | 2c06083c75cca66885c356520b5a83b4a722796b (patch) | |
tree | 0c72522ed8c7e7bed20f9e0171d939a997b01dbd | |
parent | 72356f947b096fc4cc89f1b07ce5ee55047813b0 (diff) |
remove unused NONE from TAscendingOrder enum
Change-Id: I31c793df40b2a687b4a6c84854f34aba72ac0494
-rwxr-xr-x | compilerplugins/clang/unusedenumconstants.py | 3 | ||||
-rw-r--r-- | connectivity/source/drivers/dbase/DResultSet.cxx | 5 | ||||
-rw-r--r-- | connectivity/source/inc/TSortIndex.hxx | 1 |
3 files changed, 3 insertions, 6 deletions
diff --git a/compilerplugins/clang/unusedenumconstants.py b/compilerplugins/clang/unusedenumconstants.py index 8188c5a677f7..34d52cb2ffda 100755 --- a/compilerplugins/clang/unusedenumconstants.py +++ b/compilerplugins/clang/unusedenumconstants.py @@ -114,7 +114,8 @@ for d in definitionSet: "sd/source/filter/eppt/epptbase.hxx", # PPTExTextAttr "sc/source/filter/inc/tokstack.hxx", # E_TYPE "filter/source/graphicfilter/icgm/cgmtypes.hxx", - ":basic/source/inc/filefmt.hxx", # FileOffset + "basic/source/inc/filefmt.hxx", # FileOffset + "include/basic/sbxdef.hxx", # SbxDataType # unit test code "cppu/source/uno/check.cxx", # general weird nonsense going on diff --git a/connectivity/source/drivers/dbase/DResultSet.cxx b/connectivity/source/drivers/dbase/DResultSet.cxx index cc133550114f..af17e616f5fa 100644 --- a/connectivity/source/drivers/dbase/DResultSet.cxx +++ b/connectivity/source/drivers/dbase/DResultSet.cxx @@ -170,10 +170,7 @@ bool ODbaseResultSet::fillIndexValues(const Reference< XColumnsSupplier> &_xInde sal_uInt32 nRec = pIter->First(); while (nRec != NODE_NOTFOUND) { - if (m_aOrderbyAscending[0] != TAscendingOrder::NONE) - m_pFileSet->get().push_back(nRec); - else - m_pFileSet->get().insert(m_pFileSet->get().begin(),nRec); + m_pFileSet->get().push_back(nRec); nRec = pIter->Next(); } m_pFileSet->setFrozen(); diff --git a/connectivity/source/inc/TSortIndex.hxx b/connectivity/source/inc/TSortIndex.hxx index 599e8f7209c8..be1a04dd6026 100644 --- a/connectivity/source/inc/TSortIndex.hxx +++ b/connectivity/source/inc/TSortIndex.hxx @@ -34,7 +34,6 @@ namespace connectivity enum class TAscendingOrder { ASC = 1, // ascending - NONE = 0, DESC = -1 // otherwise }; |