diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2012-07-23 19:34:52 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-07-23 19:34:52 +0200 |
commit | 5a639557ae6e0e752e68de8e831fef3166c80a3b (patch) | |
tree | 57ea885af94800d860b5ea882835e02de14477e3 | |
parent | 593580f2e5ce4f3c2d234b5ccb5a9371f5424e63 (diff) |
-Werror=unused-parameter
...and no need for ScDocFunc::UnmergeCells to be virtual---there are no
overrides.
Change-Id: Ifc8083926d7b5cb22bb3a28e6b2cc29658d07ebf
-rw-r--r-- | sc/source/ui/docshell/docfunc.cxx | 12 | ||||
-rw-r--r-- | sc/source/ui/inc/docfunc.hxx | 4 | ||||
-rw-r--r-- | sc/source/ui/undo/undoblk.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/unoobj/cellsuno.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/view/viewfun2.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/view/viewfun3.cxx | 4 |
6 files changed, 13 insertions, 13 deletions
diff --git a/sc/source/ui/docshell/docfunc.cxx b/sc/source/ui/docshell/docfunc.cxx index f6941a1b46c2..16aaed8f8cb7 100644 --- a/sc/source/ui/docshell/docfunc.cxx +++ b/sc/source/ui/docshell/docfunc.cxx @@ -1608,7 +1608,7 @@ sal_Bool ScDocFunc::InsertCells( const ScRange& rRange, const ScMarkData* pTabMa ScRange aRange( *iIter ); if( pDoc->HasAttrib( aRange, HASATTR_OVERLAPPED | HASATTR_MERGED ) ) { - UnmergeCells( aRange, sal_True, sal_True ); + UnmergeCells( aRange, sal_True ); } } } @@ -2016,7 +2016,7 @@ sal_Bool ScDocFunc::DeleteCells( const ScRange& rRange, const ScMarkData* pTabMa ScRange aRange( *iIter ); if( pDoc->HasAttrib( aRange, HASATTR_OVERLAPPED | HASATTR_MERGED ) ) { - UnmergeCells( aRange, sal_True, sal_True ); + UnmergeCells( aRange, sal_True ); } } } @@ -2484,7 +2484,7 @@ sal_Bool ScDocFunc::MoveBlock( const ScRange& rSource, const ScAddress& rDestPos // skipped rows and merged cells don't mix if ( !bIncludeFiltered && pClipDoc->HasClipFilteredRows() ) - UnmergeCells( aPasteDest, false, sal_True ); + UnmergeCells( aPasteDest, false ); VirtualDevice aVirtDev; sal_Bool bDestHeight = AdjustRowHeight( @@ -4495,17 +4495,17 @@ sal_Bool ScDocFunc::MergeCells( const ScCellMergeOption& rOption, sal_Bool bCont return sal_True; } -sal_Bool ScDocFunc::UnmergeCells( const ScRange& rRange, sal_Bool bRecord, sal_Bool bApi ) +sal_Bool ScDocFunc::UnmergeCells( const ScRange& rRange, sal_Bool bRecord ) { ScCellMergeOption aOption(rRange.aStart.Col(), rRange.aStart.Row(), rRange.aEnd.Col(), rRange.aEnd.Row()); SCTAB nTab1 = rRange.aStart.Tab(), nTab2 = rRange.aEnd.Tab(); for (SCTAB i = nTab1; i <= nTab2; ++i) aOption.maTabs.insert(i); - return UnmergeCells(aOption, bRecord, bApi); + return UnmergeCells(aOption, bRecord); } -bool ScDocFunc::UnmergeCells( const ScCellMergeOption& rOption, sal_Bool bRecord, sal_Bool bApi ) +bool ScDocFunc::UnmergeCells( const ScCellMergeOption& rOption, sal_Bool bRecord ) { using ::std::set; diff --git a/sc/source/ui/inc/docfunc.hxx b/sc/source/ui/inc/docfunc.hxx index fcf851c0e661..8d87bd98e8b0 100644 --- a/sc/source/ui/inc/docfunc.hxx +++ b/sc/source/ui/inc/docfunc.hxx @@ -186,8 +186,8 @@ public: virtual sal_Bool MergeCells( const ScCellMergeOption& rOption, sal_Bool bContents, sal_Bool bRecord, sal_Bool bApi ); - virtual sal_Bool UnmergeCells( const ScRange& rRange, sal_Bool bRecord, sal_Bool bApi ); - virtual bool UnmergeCells( const ScCellMergeOption& rOption, sal_Bool bRecord, sal_Bool bApi ); + sal_Bool UnmergeCells( const ScRange& rRange, sal_Bool bRecord ); + bool UnmergeCells( const ScCellMergeOption& rOption, sal_Bool bRecord ); virtual bool SetNewRangeNames( ScRangeName* pNewRanges, bool bModifyDoc = true, SCTAB nTab = -1 ); // takes ownership of pNewRanges //nTab = -1 for local range names virtual bool ModifyRangeNames( const ScRangeName& rNewRanges, SCTAB nTab = -1 ); diff --git a/sc/source/ui/undo/undoblk.cxx b/sc/source/ui/undo/undoblk.cxx index b978a5ce65f7..cbab521e7548 100644 --- a/sc/source/ui/undo/undoblk.cxx +++ b/sc/source/ui/undo/undoblk.cxx @@ -1346,7 +1346,7 @@ void ScUndoDragDrop::Redo() // skipped rows and merged cells don't mix if ( !bIncludeFiltered && pClipDoc->HasClipFilteredRows() ) - pDocShell->GetDocFunc().UnmergeCells( aDestRange, false, sal_True ); + pDocShell->GetDocFunc().UnmergeCells( aDestRange, false ); for (nTab=aDestRange.aStart.Tab(); nTab<=aDestRange.aEnd.Tab(); nTab++) { diff --git a/sc/source/ui/unoobj/cellsuno.cxx b/sc/source/ui/unoobj/cellsuno.cxx index 478194108ef1..b880f232685c 100644 --- a/sc/source/ui/unoobj/cellsuno.cxx +++ b/sc/source/ui/unoobj/cellsuno.cxx @@ -5424,7 +5424,7 @@ void SAL_CALL ScCellRangeObj::merge( sal_Bool bMerge ) throw(uno::RuntimeExcepti if ( bMerge ) pDocSh->GetDocFunc().MergeCells( aMergeOption, false, true, true ); else - pDocSh->GetDocFunc().UnmergeCells( aMergeOption, true, true ); + pDocSh->GetDocFunc().UnmergeCells( aMergeOption, true ); //! Fehler abfangen? } diff --git a/sc/source/ui/view/viewfun2.cxx b/sc/source/ui/view/viewfun2.cxx index e3515d795a36..727a7ec0182c 100644 --- a/sc/source/ui/view/viewfun2.cxx +++ b/sc/source/ui/view/viewfun2.cxx @@ -1241,7 +1241,7 @@ sal_Bool ScViewFunc::RemoveMerge( sal_Bool bRecord ) } while (bExtended); - sal_Bool bOk = pDocSh->GetDocFunc().UnmergeCells(aOption, bRecord, false ); + sal_Bool bOk = pDocSh->GetDocFunc().UnmergeCells(aOption, bRecord ); aExtended = aOption.getFirstSingleRange(); MarkRange( aExtended ); diff --git a/sc/source/ui/view/viewfun3.cxx b/sc/source/ui/view/viewfun3.cxx index b6a2b98f1da1..86371930c279 100644 --- a/sc/source/ui/view/viewfun3.cxx +++ b/sc/source/ui/view/viewfun3.cxx @@ -1188,7 +1188,7 @@ bool ScViewFunc::PasteFromClip( sal_uInt16 nFlags, ScDocument* pClipDoc, ScRange aRange(nCol, nRow1, nStartTab); pDoc->ExtendOverlapped(aRange); pDoc->ExtendMerge(aRange, true); - rDocFunc.UnmergeCells(aRange, bRecord, true); + rDocFunc.UnmergeCells(aRange, bRecord); } } } @@ -1291,7 +1291,7 @@ bool ScViewFunc::PasteFromClip( sal_uInt16 nFlags, ScDocument* pClipDoc, // skipped rows and merged cells don't mix if ( !bIncludeFiltered && pClipDoc->HasClipFilteredRows() ) - rDocFunc.UnmergeCells( aUserRange, false, true ); + rDocFunc.UnmergeCells( aUserRange, false ); pDoc->ExtendMergeSel( nStartCol, nStartRow, nEndCol, nEndRow, aFilteredMark, true ); // Refresh // und Bereich neu |