diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2016-05-08 17:32:04 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2016-05-08 16:52:23 +0000 |
commit | de34052e31c6cb6caefe89e52dee3039eb3fbacb (patch) | |
tree | a3594ce14e05f4cd7bec025222caf984fdf8c74a /sc | |
parent | 4e509d80ee7b22ce0e79d62f7afb7a008726fe5f (diff) |
cppcheck: fix some redundantAssignment reports
Change-Id: I8e93fc0bff95c5c7a15ccecaaf19fce12e69ca6d
Reviewed-on: https://gerrit.libreoffice.org/24765
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/filter/xml/xmldrani.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/Accessibility/AccessibleSpreadsheet.cxx | 1 | ||||
-rw-r--r-- | sc/source/ui/cctrl/cbuttonw.cxx | 3 |
3 files changed, 1 insertions, 5 deletions
diff --git a/sc/source/filter/xml/xmldrani.cxx b/sc/source/filter/xml/xmldrani.cxx index 476ec86409c4..61e154ff2efd 100644 --- a/sc/source/filter/xml/xmldrani.cxx +++ b/sc/source/filter/xml/xmldrani.cxx @@ -365,8 +365,6 @@ std::unique_ptr<ScDBData> ScXMLDatabaseRangeContext::ConvertToDBData(const OUStr aParam.bCaseSens = bSubTotalsIsCaseSensitive; aParam.bDoSort = bSubTotalsSortGroups; aParam.bAscending = bSubTotalsAscending; - aParam.bUserDef = bSubTotalsEnabledUserList; - aParam.nUserIndex = nSubTotalsUserListIndex; std::vector <ScSubTotalRule>::iterator itr = aSubTotalRules.begin(), itrEnd = aSubTotalRules.end(); for (size_t nPos = 0; itr != itrEnd; ++itr, ++nPos) { diff --git a/sc/source/ui/Accessibility/AccessibleSpreadsheet.cxx b/sc/source/ui/Accessibility/AccessibleSpreadsheet.cxx index e7030b4e7e84..bab7391269b6 100644 --- a/sc/source/ui/Accessibility/AccessibleSpreadsheet.cxx +++ b/sc/source/ui/Accessibility/AccessibleSpreadsheet.cxx @@ -1576,7 +1576,6 @@ void ScAccessibleSpreadsheet::NotifyRefMode() AccessibleEventObject aEvent; aEvent.Source = uno::Reference< XAccessible >(this); aEvent.EventId = AccessibleEventId::ACTIVE_DESCENDANT_CHANGED; - aEvent.Source = uno::Reference< XAccessible >(this); aEvent.OldValue <<= uno::Reference<XAccessible>(m_pAccFormulaCell.get()); m_pAccFormulaCell = GetAccessibleCellAt(aFormulaAddr.Row(), aFormulaAddr.Col()); uno::Reference< XAccessible > xNew = m_pAccFormulaCell.get(); diff --git a/sc/source/ui/cctrl/cbuttonw.cxx b/sc/source/ui/cctrl/cbuttonw.cxx index 46ebb210cd9c..5a5a7008bfa8 100644 --- a/sc/source/ui/cctrl/cbuttonw.cxx +++ b/sc/source/ui/cctrl/cbuttonw.cxx @@ -62,13 +62,12 @@ void ScDDComboBoxButton::Draw( const Point& rAt, bool bOldEnable = pOut->IsMapModeEnabled(); Rectangle aBtnRect( rAt, rSize ); - Rectangle aInnerRect = aBtnRect; pOut->EnableMapMode( false ); DecorationView aDecoView( pOut); - aInnerRect=aDecoView.DrawButton( aBtnRect, DrawButtonFlags::Default ); + Rectangle aInnerRect=aDecoView.DrawButton( aBtnRect, DrawButtonFlags::Default ); aInnerRect.Left() += 1; aInnerRect.Top() += 1; |