diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-04-04 14:34:07 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-04-11 09:48:10 +0200 |
commit | 49eb02f07a5af44da59008a238e828b4a9532bef (patch) | |
tree | 43c4b4eaacd79fe0bff784a4ef71f4c1080c3912 /sc/source/ui/dbgui/tpsort.cxx | |
parent | 5823ecd54b16974ffe8821a5ae061cd0ecc4cf84 (diff) |
new loplugin:unusedvariablemore
collection of heuristics to look for local variables that are never read
from i.e. do not contribute to the surrounding logic
This is an expensive plugin, since it walks up the parent tree,
so it is off by default.
Change-Id: Ib8ba292241bd16adf299e8bba4502cb473513a06
Reviewed-on: https://gerrit.libreoffice.org/52450
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui/dbgui/tpsort.cxx')
-rw-r--r-- | sc/source/ui/dbgui/tpsort.cxx | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/sc/source/ui/dbgui/tpsort.cxx b/sc/source/ui/dbgui/tpsort.cxx index 906dd77837c1..296816f5e253 100644 --- a/sc/source/ui/dbgui/tpsort.cxx +++ b/sc/source/ui/dbgui/tpsort.cxx @@ -581,7 +581,6 @@ void ScTabPageSortOptions::Init() { ScDBCollection* pDBColl = pDoc->GetDBCollection(); const SCTAB nCurTab = pViewData->GetTabNo(); - OUString theDbName = STR_DB_LOCAL_NONAME; const formula::FormulaGrammar::AddressConvention eConv = pDoc->GetAddressConvention(); m_pLbOutPos->Clear(); @@ -604,12 +603,6 @@ void ScTabPageSortOptions::Init() // Check whether the field that is passed on is a database field: - ScAddress aScAddress( aSortData.nCol1, aSortData.nRow1, nCurTab ); - OUString theArea = - ScRange( aScAddress, - ScAddress( aSortData.nCol2, aSortData.nRow2, nCurTab ) - ).Format(ScRefFlags::RANGE_ABS, pDoc, eConv); - if ( pDBColl ) { ScDBData* pDBData @@ -618,13 +611,10 @@ void ScTabPageSortOptions::Init() aSortData.nCol2, aSortData.nRow2 ); if ( pDBData ) { - theDbName = pDBData->GetName(); m_pBtnHeader->Check( pDBData->HasHeader() ); } } - theArea += " (" + theDbName + ")"; - m_pBtnHeader->SetText( aStrColLabel ); } |