diff options
author | Noel Grandin <noel@peralex.com> | 2016-06-26 15:59:55 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2016-07-13 10:54:24 +0000 |
commit | 6431f5554bd585935e7a9bc354609a4363a09509 (patch) | |
tree | fd94c26de337e9e7357daa404e6afc1cf16cd31f /sc/source/ui/StatisticsDialogs | |
parent | 7580d67eff34b626903163f26d6448f80a3edc45 (diff) |
loplugin:singlevalfields in sc(part1)
Change-Id: I25760def2c12e4ca87843c2f3ce1a60b5a9b2e44
Reviewed-on: https://gerrit.libreoffice.org/26680
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'sc/source/ui/StatisticsDialogs')
-rw-r--r-- | sc/source/ui/StatisticsDialogs/TableFillingAndNavigationTools.cxx | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/sc/source/ui/StatisticsDialogs/TableFillingAndNavigationTools.cxx b/sc/source/ui/StatisticsDialogs/TableFillingAndNavigationTools.cxx index d6b7d361988a..8622dcf3d0ea 100644 --- a/sc/source/ui/StatisticsDialogs/TableFillingAndNavigationTools.cxx +++ b/sc/source/ui/StatisticsDialogs/TableFillingAndNavigationTools.cxx @@ -93,8 +93,7 @@ void FormulaTemplate::applyNumber(const OUString& aVariable, sal_Int32 aValue) AddressWalker::AddressWalker(ScAddress aInitialAddress) : mCurrentAddress(aInitialAddress), mMinimumAddress(aInitialAddress), - mMaximumAddress(aInitialAddress), - mTrackRange(true) + mMaximumAddress(aInitialAddress) { mAddressStack.push_back(mCurrentAddress); } @@ -132,21 +131,15 @@ void AddressWalker::nextColumn() { mCurrentAddress.IncCol(); - if (mTrackRange) - { - if(mMaximumAddress.Col() < mCurrentAddress.Col()) - mMaximumAddress.SetCol(mCurrentAddress.Col()); - } + if(mMaximumAddress.Col() < mCurrentAddress.Col()) + mMaximumAddress.SetCol(mCurrentAddress.Col()); } void AddressWalker::nextRow() { mCurrentAddress.IncRow(); - if (mTrackRange) - { - if(mMaximumAddress.Row() < mCurrentAddress.Row()) - mMaximumAddress.SetRow(mCurrentAddress.Row()); - } + if(mMaximumAddress.Row() < mCurrentAddress.Row()) + mMaximumAddress.SetRow(mCurrentAddress.Row()); } void AddressWalker::push(SCCOL aRelativeCol, SCROW aRelativeRow, SCTAB aRelativeTab) |