diff options
Diffstat (limited to 'sc/source/core')
39 files changed, 3 insertions, 288 deletions
diff --git a/sc/source/core/data/attrib.cxx b/sc/source/core/data/attrib.cxx index df14e4ec8bce..712bd0457e5c 100644 --- a/sc/source/core/data/attrib.cxx +++ b/sc/source/core/data/attrib.cxx @@ -1130,10 +1130,6 @@ ScCondFormatItem* ScCondFormatItem::Clone(SfxItemPool*) const return new ScCondFormatItem(maIndex); } -const std::vector<sal_uInt32>& ScCondFormatItem::GetCondFormatData() const -{ - return maIndex; -} void ScCondFormatItem::AddCondFormatData( sal_uInt32 nIndex ) { diff --git a/sc/source/core/data/clipcontext.cxx b/sc/source/core/data/clipcontext.cxx index 556e3dbcb4d8..d5dc3dc15831 100644 --- a/sc/source/core/data/clipcontext.cxx +++ b/sc/source/core/data/clipcontext.cxx @@ -82,10 +82,6 @@ void CopyFromClipContext::setDeleteFlag( sal_uInt16 nFlag ) } -ScCellValue& CopyFromClipContext::getSingleCell() -{ - return maSingleCell; -} void CopyFromClipContext::setCondFormatList( ScConditionalFormatList* pCondFormatList ) { diff --git a/sc/source/core/data/colorscale.cxx b/sc/source/core/data/colorscale.cxx index fe8eff879695..d2e0eef2950b 100644 --- a/sc/source/core/data/colorscale.cxx +++ b/sc/source/core/data/colorscale.cxx @@ -280,10 +280,6 @@ bool ScColorScaleEntry::NeedsRepaint() const return false; } -const Color& ScColorScaleEntry::GetColor() const -{ - return maColor; -} void ScColorScaleEntry::SetColor(const Color& rColor) { diff --git a/sc/source/core/data/column.cxx b/sc/source/core/data/column.cxx index f0dc03af9be9..0bc27bb0f464 100644 --- a/sc/source/core/data/column.cxx +++ b/sc/source/core/data/column.cxx @@ -750,15 +750,7 @@ void ScColumn::ApplyAttr( SCROW nRow, const SfxPoolItem& rAttr ) pDocPool->Remove( *pNewPattern ); // free up resources } -ScDocument& ScColumn::GetDoc() -{ - return *pDocument; -} -const ScDocument& ScColumn::GetDoc() const -{ - return *pDocument; -} ScRefCellValue ScColumn::GetCellValue( SCROW nRow ) const { diff --git a/sc/source/core/data/conditio.cxx b/sc/source/core/data/conditio.cxx index 2fb8cf125d6c..2c6bc2918d29 100644 --- a/sc/source/core/data/conditio.cxx +++ b/sc/source/core/data/conditio.cxx @@ -1776,10 +1776,6 @@ void ScCondDateFormatEntry::SetDateType( condformat::ScCondFormatDateType eType } -const OUString& ScCondDateFormatEntry::GetStyleName() const -{ - return maStyleName; -} void ScCondDateFormatEntry::SetStyleName( const OUString& rStyleName ) { diff --git a/sc/source/core/data/dociter.cxx b/sc/source/core/data/dociter.cxx index 235e0d277d72..06519a0569b6 100644 --- a/sc/source/core/data/dociter.cxx +++ b/sc/source/core/data/dociter.cxx @@ -931,30 +931,14 @@ bool ScCellIterator::getCurrent() return false; } -CellType ScCellIterator::getType() const -{ - return maCurCell.meType; -} OUString ScCellIterator::getString() { return maCurCell.getString(mpDoc); } -const EditTextObject* ScCellIterator::getEditText() const -{ - return maCurCell.mpEditText; -} -ScFormulaCell* ScCellIterator::getFormulaCell() -{ - return maCurCell.mpFormula; -} -const ScFormulaCell* ScCellIterator::getFormulaCell() const -{ - return maCurCell.mpFormula; -} ScCellValue ScCellIterator::getCellValue() const { @@ -982,10 +966,6 @@ ScCellValue ScCellIterator::getCellValue() const return aRet; } -const ScRefCellValue& ScCellIterator::getRefCellValue() const -{ - return maCurCell; -} bool ScCellIterator::hasString() const { @@ -2501,10 +2481,6 @@ bool ScUsedAreaIterator::GetNext() return bFound; } -const ScRefCellValue& ScUsedAreaIterator::GetCell() const -{ - return maFoundCell; -} ScDocAttrIterator::ScDocAttrIterator(ScDocument* pDocument, SCTAB nTable, SCCOL nCol1, SCROW nRow1, diff --git a/sc/source/core/data/documen2.cxx b/sc/source/core/data/documen2.cxx index a1bc567efb9d..2b143ff0d873 100644 --- a/sc/source/core/data/documen2.cxx +++ b/sc/source/core/data/documen2.cxx @@ -1392,10 +1392,6 @@ void ScDocument::SetPreviewFont( SfxItemSet* pFont ) pPreviewFont = pFont; } -const ScMarkData ScDocument::GetPreviewSelection() -{ - return maPreviewSelection; -} void ScDocument::SetPreviewSelection( ScMarkData& rSel ) { diff --git a/sc/source/core/data/documen3.cxx b/sc/source/core/data/documen3.cxx index 2a4bde6506ba..e25a742f60c7 100644 --- a/sc/source/core/data/documen3.cxx +++ b/sc/source/core/data/documen3.cxx @@ -324,10 +324,6 @@ ScDPCollection* ScDocument::GetDPCollection() return pDPCollection; } -const ScDPCollection* ScDocument::GetDPCollection() const -{ - return pDPCollection; -} ScDPObject* ScDocument::GetDPAtCursor(SCCOL nCol, SCROW nRow, SCTAB nTab) const { @@ -964,10 +960,6 @@ void ScDocument::AddUnoRefChange( sal_Int64 nId, const ScRangeList& rOldRanges ) pUnoRefUndoList->Add( nId, rOldRanges ); } -sal_Int64 ScDocument::GetNewUnoId() -{ - return ++nUnoObjectId; -} void ScDocument::UpdateReference( sc::RefUpdateContext& rCxt, ScDocument* pUndoDoc, bool bIncludeDraw, bool bUpdateNoteCaptionPos ) diff --git a/sc/source/core/data/document.cxx b/sc/source/core/data/document.cxx index 928a478e4480..4df3001cecf9 100644 --- a/sc/source/core/data/document.cxx +++ b/sc/source/core/data/document.cxx @@ -4503,10 +4503,6 @@ const ScPatternAttr* ScDocument::GetMostUsedPattern( SCCOL nCol, SCROW nStartRow return NULL; } -const ScValidationDataList* ScDocument::GetValidationList() const -{ - return pValidationList; -} void ScDocument::ApplyAttr( SCCOL nCol, SCROW nRow, SCTAB nTab, const SfxPoolItem& rAttr ) diff --git a/sc/source/core/data/document10.cxx b/sc/source/core/data/document10.cxx index 4112bb9d0ee3..a2aac0ac1a93 100644 --- a/sc/source/core/data/document10.cxx +++ b/sc/source/core/data/document10.cxx @@ -239,10 +239,6 @@ void ScDocument::SetCalcConfig( const ScCalcConfig& rConfig ) maCalcConfig = rConfig; } -const ScCalcConfig& ScDocument::GetCalcConfig() const -{ - return maCalcConfig; -} void ScDocument::PreprocessRangeNameUpdate() { diff --git a/sc/source/core/data/dpfilteredcache.cxx b/sc/source/core/data/dpfilteredcache.cxx index 3a95fac2c720..3b248ff9be3b 100644 --- a/sc/source/core/data/dpfilteredcache.cxx +++ b/sc/source/core/data/dpfilteredcache.cxx @@ -410,10 +410,6 @@ bool ScDPFilteredCache::isRowQualified(sal_Int32 nRow, const vector<Criterion>& return true; } -const ScDPCache* ScDPFilteredCache::getCache() const -{ - return &mrCache; -} #if DEBUG_PIVOT_TABLE using std::cout; diff --git a/sc/source/core/data/dpgroup.cxx b/sc/source/core/data/dpgroup.cxx index e2eeea7a0971..70085f64f078 100644 --- a/sc/source/core/data/dpgroup.cxx +++ b/sc/source/core/data/dpgroup.cxx @@ -494,10 +494,6 @@ ScDPGroupTableData::~ScDPGroupTableData() delete[] pNumGroups; } -boost::shared_ptr<ScDPTableData> ScDPGroupTableData::GetSourceTableData() -{ - return pSourceData; -} void ScDPGroupTableData::AddGroupDimension( const ScDPGroupDimension& rGroup ) { diff --git a/sc/source/core/data/dpitemdata.cxx b/sc/source/core/data/dpitemdata.cxx index 94f66762adeb..6bd1f736cc14 100644 --- a/sc/source/core/data/dpitemdata.cxx +++ b/sc/source/core/data/dpitemdata.cxx @@ -152,11 +152,6 @@ ScDPItemData::~ScDPItemData() DisposeString(); } -ScDPItemData::Type ScDPItemData::GetType() const -{ - return static_cast<Type>(meType); -} - void ScDPItemData::SetEmpty() { DisposeString(); diff --git a/sc/source/core/data/dpobject.cxx b/sc/source/core/data/dpobject.cxx index df40306ab97b..c69dfd38f51d 100644 --- a/sc/source/core/data/dpobject.cxx +++ b/sc/source/core/data/dpobject.cxx @@ -3618,20 +3618,8 @@ bool ScDPCollection::InsertNewTable(ScDPObject* pDPObj) return true; } -ScDPCollection::SheetCaches& ScDPCollection::GetSheetCaches() -{ - return maSheetCaches; -} -ScDPCollection::NameCaches& ScDPCollection::GetNameCaches() -{ - return maNameCaches; -} -ScDPCollection::DBCaches& ScDPCollection::GetDBCaches() -{ - return maDBCaches; -} ScRangeList ScDPCollection::GetAllTableRanges( SCTAB nTab ) const { diff --git a/sc/source/core/data/dpsave.cxx b/sc/source/core/data/dpsave.cxx index 761a369a208e..91fab1cca7e6 100644 --- a/sc/source/core/data/dpsave.cxx +++ b/sc/source/core/data/dpsave.cxx @@ -865,10 +865,6 @@ const OUString* ScDPSaveData::GetGrandTotalName() const return mpGrandTotalName.get(); } -const ScDPSaveData::DimsType& ScDPSaveData::GetDimensions() const -{ - return aDimList; -} namespace { diff --git a/sc/source/core/data/dpshttab.cxx b/sc/source/core/data/dpshttab.cxx index 2a03978b7bcb..166c4a3c28be 100644 --- a/sc/source/core/data/dpshttab.cxx +++ b/sc/source/core/data/dpshttab.cxx @@ -252,10 +252,6 @@ void ScSheetSourceDesc::SetRangeName(const OUString& rName) maRangeName = rName; } -const OUString& ScSheetSourceDesc::GetRangeName() const -{ - return maRangeName; -} bool ScSheetSourceDesc::HasRangeName() const { @@ -267,10 +263,6 @@ void ScSheetSourceDesc::SetQueryParam(const ScQueryParam& rParam) maQueryParam = rParam; } -const ScQueryParam& ScSheetSourceDesc::GetQueryParam() const -{ - return maQueryParam; -} bool ScSheetSourceDesc::operator== (const ScSheetSourceDesc& rOther) const { diff --git a/sc/source/core/data/dptabsrc.cxx b/sc/source/core/data/dptabsrc.cxx index 8355ff48c5d3..f7120ba7e8da 100644 --- a/sc/source/core/data/dptabsrc.cxx +++ b/sc/source/core/data/dptabsrc.cxx @@ -1458,10 +1458,6 @@ uno::Reference<util::XCloneable> SAL_CALL ScDPDimension::createClone() throw(uno return CreateCloneObject(); } -const sheet::DataPilotFieldReference& ScDPDimension::GetReferenceValue() const -{ - return aReferenceValue; -} const ScDPItemData& ScDPDimension::GetSelectedData() { diff --git a/sc/source/core/data/formulacell.cxx b/sc/source/core/data/formulacell.cxx index c7e9aeb6006e..ea2eadc8a7e9 100644 --- a/sc/source/core/data/formulacell.cxx +++ b/sc/source/core/data/formulacell.cxx @@ -3390,10 +3390,6 @@ void ScFormulaCell::SetChanged(bool b) -const ScTokenArray* ScFormulaCell::GetCode() const -{ - return pCode; -} void ScFormulaCell::SetCode( ScTokenArray* pNew ) { @@ -3516,10 +3512,6 @@ ScFormulaCellGroupRef ScFormulaCell::CreateCellGroup( SCROW nLen, bool bInvarian return mxGroup; } -ScFormulaCellGroupRef ScFormulaCell::GetCellGroup() const -{ - return mxGroup; -} void ScFormulaCell::SetCellGroup( const ScFormulaCellGroupRef &xRef ) { diff --git a/sc/source/core/data/listenercontext.cxx b/sc/source/core/data/listenercontext.cxx index d6b92ebe0ef6..0463e7baa75a 100644 --- a/sc/source/core/data/listenercontext.cxx +++ b/sc/source/core/data/listenercontext.cxx @@ -20,10 +20,6 @@ StartListeningContext::StartListeningContext( ScDocument& rDoc, const boost::shared_ptr<ColumnBlockPositionSet>& pSet) : mrDoc(rDoc), mpSet(pSet) {} -ScDocument& StartListeningContext::getDoc() -{ - return mrDoc; -} ColumnBlockPosition* StartListeningContext::getBlockPosition(SCTAB nTab, SCCOL nCol) { @@ -44,10 +40,6 @@ void EndListeningContext::setPositionDelta( const ScAddress& rDelta ) maPosDelta = rDelta; } -ScDocument& EndListeningContext::getDoc() -{ - return mrDoc; -} ScAddress EndListeningContext::getOldPosition( const ScAddress& rPos ) const diff --git a/sc/source/core/data/markdata.cxx b/sc/source/core/data/markdata.cxx index a062593735f0..fc200b23f132 100644 --- a/sc/source/core/data/markdata.cxx +++ b/sc/source/core/data/markdata.cxx @@ -216,10 +216,6 @@ SCTAB ScMarkData::GetLastSelected() const return 0; } -const ScMarkData::MarkedTabsType& ScMarkData::GetSelectedTabs() const -{ - return maTabMarked; -} void ScMarkData::SetSelectedTabs(const MarkedTabsType& rTabs) { diff --git a/sc/source/core/data/postit.cxx b/sc/source/core/data/postit.cxx index 09b6f5189464..141de43276e5 100644 --- a/sc/source/core/data/postit.cxx +++ b/sc/source/core/data/postit.cxx @@ -510,20 +510,12 @@ ScPostIt* ScPostIt::Clone( const ScAddress& rOwnPos, ScDocument& rDestDoc, const } -const OUString& ScPostIt::GetDate() const -{ - return maNoteData.maDate; -} void ScPostIt::SetDate( const OUString& rDate ) { maNoteData.maDate = rDate; } -const OUString& ScPostIt::GetAuthor() const -{ - return maNoteData.maAuthor; -} void ScPostIt::SetAuthor( const OUString& rAuthor ) { @@ -576,10 +568,6 @@ void ScPostIt::SetText( const ScAddress& rPos, const OUString& rText ) maNoteData.mpCaption->SetText( rText ); } -SdrCaptionObj* ScPostIt::GetCaption() const -{ - return maNoteData.mpCaption; -} SdrCaptionObj* ScPostIt::GetOrCreateCaption( const ScAddress& rPos ) const { @@ -604,10 +592,6 @@ void ScPostIt::ShowCaption( const ScAddress& rPos, bool bShow ) ScCaptionUtil::SetCaptionLayer( *maNoteData.mpCaption, bShow ); } -bool ScPostIt::IsCaptionShown() const -{ - return maNoteData.mbShown; -} void ScPostIt::ShowCaptionTemp( const ScAddress& rPos, bool bShow ) { diff --git a/sc/source/core/data/rowheightcontext.cxx b/sc/source/core/data/rowheightcontext.cxx index 408bf4df759a..08466ae2acad 100644 --- a/sc/source/core/data/rowheightcontext.cxx +++ b/sc/source/core/data/rowheightcontext.cxx @@ -24,15 +24,7 @@ RowHeightContext::~RowHeightContext() {} -const Fraction& RowHeightContext::getZoomX() const -{ - return maZoomX; -} -const Fraction& RowHeightContext::getZoomY() const -{ - return maZoomY; -} void RowHeightContext::setExtraHeight( sal_uInt16 nH ) diff --git a/sc/source/core/data/table1.cxx b/sc/source/core/data/table1.cxx index fe407e0db71c..5cba042224ed 100644 --- a/sc/source/core/data/table1.cxx +++ b/sc/source/core/data/table1.cxx @@ -394,10 +394,6 @@ void ScTable::SetLoadingRTL( bool bSet ) bLoadingRTL = bSet; } -const Color& ScTable::GetTabBgColor() const -{ - return aTabBgColor; -} void ScTable::SetTabBgColor(const Color& rColor) { diff --git a/sc/source/core/data/table3.cxx b/sc/source/core/data/table3.cxx index b5447116834e..5b44baf605fc 100644 --- a/sc/source/core/data/table3.cxx +++ b/sc/source/core/data/table3.cxx @@ -2640,15 +2640,7 @@ bool ScTable::GetDataEntries(SCCOL nCol, SCROW nRow, std::set<ScTypedStrData>& r return aCol[nCol].GetDataEntries( nRow, rStrings, bLimit ); } -ScDocument& ScTable::GetDoc() -{ - return *pDocument; -} -const ScDocument& ScTable::GetDoc() const -{ - return *pDocument; -} sal_uLong ScTable::GetCellCount() const { diff --git a/sc/source/core/data/tabprotection.cxx b/sc/source/core/data/tabprotection.cxx index 8d19ab9ac5c3..364f922d715a 100644 --- a/sc/source/core/data/tabprotection.cxx +++ b/sc/source/core/data/tabprotection.cxx @@ -112,7 +112,7 @@ public: void setOption(SCSIZE nOptId, bool bEnabled); void setEnhancedProtection( const ::std::vector< ScEnhancedProtection > & rProt ); - const ::std::vector< ScEnhancedProtection > & getEnhancedProtection() const; + const ::std::vector< ScEnhancedProtection > & getEnhancedProtection() const { return maEnhancedProtection;} bool updateReference( UpdateRefMode, ScDocument*, const ScRange& rWhere, SCsCOL nDx, SCsROW nDy, SCsTAB nDz ); bool isBlockEditable( const ScRange& rRange ) const; bool isSelectionEditable( const ScRangeList& rRangeList ) const; @@ -351,10 +351,6 @@ void ScTableProtectionImpl::setEnhancedProtection( const ::std::vector< ScEnhanc maEnhancedProtection = rProt; } -const ::std::vector< ScEnhancedProtection > & ScTableProtectionImpl::getEnhancedProtection() const -{ - return maEnhancedProtection; -} bool ScTableProtectionImpl::updateReference( UpdateRefMode eMode, ScDocument* pDoc, const ScRange& rWhere, SCsCOL nDx, SCsROW nDy, SCsTAB nDz ) diff --git a/sc/source/core/inc/doubleref.hxx b/sc/source/core/inc/doubleref.hxx index 1ca4d1cf0b69..3c7d18248cc9 100644 --- a/sc/source/core/inc/doubleref.hxx +++ b/sc/source/core/inc/doubleref.hxx @@ -92,7 +92,7 @@ public: explicit ScDBInternalRange(ScDocument* pDoc, const ScRange& rRange); virtual ~ScDBInternalRange(); - const ScRange& getRange() const; + const ScRange& getRange() const { return maRange;} virtual SCCOL getColSize() const SAL_OVERRIDE; virtual SCROW getRowSize() const SAL_OVERRIDE; diff --git a/sc/source/core/inc/jumpmatrix.hxx b/sc/source/core/inc/jumpmatrix.hxx index 63e2ee20f1bd..0f5be1945457 100644 --- a/sc/source/core/inc/jumpmatrix.hxx +++ b/sc/source/core/inc/jumpmatrix.hxx @@ -101,7 +101,7 @@ public: void GetJump( SCSIZE nCol, SCSIZE nRow, double& rBool, short& rStart, short& rNext, short& rStop ) const; void SetAllJumps( double fBool, short nStart, short nNext, short nStop = SHRT_MAX ); void SetJumpParameters( ScTokenVec* p ); - const ScTokenVec* GetJumpParameters() const; + const ScTokenVec* GetJumpParameters() const { return pParams;} bool HasResultMatrix() const; ScMatrix* GetResultMatrix(); ///< also applies pending buffered values void GetPos( SCSIZE& rCol, SCSIZE& rRow ) const; diff --git a/sc/source/core/tool/addincol.cxx b/sc/source/core/tool/addincol.cxx index d8539b9d76aa..f0a757b071e8 100644 --- a/sc/source/core/tool/addincol.cxx +++ b/sc/source/core/tool/addincol.cxx @@ -1699,9 +1699,5 @@ void ScUnoAddInCall::SetResult( const uno::Any& rNewRes ) } } -ScMatrixRef ScUnoAddInCall::GetMatrix() const -{ - return xMatrix; -} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sc/source/core/tool/chartlis.cxx b/sc/source/core/tool/chartlis.cxx index 6e15d7739100..a19686bdf4a8 100644 --- a/sc/source/core/tool/chartlis.cxx +++ b/sc/source/core/tool/chartlis.cxx @@ -95,10 +95,6 @@ void ScChartListener::ExternalRefListener::removeFileId(sal_uInt16 nFileId) maFileIds.erase(nFileId); } -boost::unordered_set<sal_uInt16>& ScChartListener::ExternalRefListener::getAllFileIds() -{ - return maFileIds; -} ScChartListener::ScChartListener( const OUString& rName, ScDocument* pDocP, const ScRangeListRef& rRangeList ) : @@ -176,10 +172,6 @@ ScChartListener::~ScChartListener() } } -const OUString& ScChartListener::GetName() const -{ - return maName; -} void ScChartListener::SetUno( const uno::Reference< chart::XChartDataChangeEventListener >& rListener, @@ -477,20 +469,8 @@ bool ScChartListenerCollection::hasListeners() const return !maListeners.empty(); } -const ScChartListenerCollection::ListenersType& ScChartListenerCollection::getListeners() const -{ - return maListeners; -} -ScChartListenerCollection::ListenersType& ScChartListenerCollection::getListeners() -{ - return maListeners; -} -ScChartListenerCollection::StringSetType& ScChartListenerCollection::getNonOleObjectNames() -{ - return maNonOleObjectNames; -} OUString ScChartListenerCollection::getUniqueName(const OUString& rPrefix) const { diff --git a/sc/source/core/tool/chgtrack.cxx b/sc/source/core/tool/chgtrack.cxx index b2097a119d42..239964488221 100644 --- a/sc/source/core/tool/chgtrack.cxx +++ b/sc/source/core/tool/chgtrack.cxx @@ -553,20 +553,12 @@ OUString ScChangeAction::GetRefString( return aBuf.makeStringAndClear(); } -const OUString& ScChangeAction::GetUser() const -{ - return aUser; -} void ScChangeAction::SetUser( const OUString& r ) { aUser = r; } -const OUString& ScChangeAction::GetComment() const -{ - return aComment; -} void ScChangeAction::SetComment( const OUString& rStr ) { @@ -1451,15 +1443,7 @@ void ScChangeActionContent::GetNewString( OUString& rStr, const ScDocument* pDoc GetValueString(rStr, maNewValue, maNewCell, pDoc); } -const ScCellValue& ScChangeActionContent::GetOldCell() const -{ - return maOldCell; -} -const ScCellValue& ScChangeActionContent::GetNewCell() const -{ - return maNewCell; -} void ScChangeActionContent::GetDescription( OUString& rStr, ScDocument* pDoc, bool bSplitRange, bool bWarning ) const @@ -2217,10 +2201,6 @@ void ScChangeTrack::Clear() Init(); } -const std::set<OUString>& ScChangeTrack::GetUserCollection() const -{ - return maUserCollection; -} void ScChangeTrack::ConfigurationChanged( utl::ConfigurationBroadcaster*, sal_uInt32 ) { @@ -2258,10 +2238,6 @@ void ScChangeTrack::SetUser( const OUString& rUser ) maUserCollection.insert(maUser); } -const OUString& ScChangeTrack::GetUser() const -{ - return maUser; -} void ScChangeTrack::StartBlockModify( ScChangeTrackMsgType eMsgType, sal_uLong nStartAction ) diff --git a/sc/source/core/tool/dbdata.cxx b/sc/source/core/tool/dbdata.cxx index e8f171fa4ce0..9e51ae1aa8a3 100644 --- a/sc/source/core/tool/dbdata.cxx +++ b/sc/source/core/tool/dbdata.cxx @@ -802,25 +802,9 @@ ScDBCollection::ScDBCollection(ScDocument* pDocument) : ScDBCollection::ScDBCollection(const ScDBCollection& r) : pDoc(r.pDoc), nEntryIndex(r.nEntryIndex), maNamedDBs(r.maNamedDBs), maAnonDBs(r.maAnonDBs) {} -ScDBCollection::NamedDBs& ScDBCollection::getNamedDBs() -{ - return maNamedDBs; -} -const ScDBCollection::NamedDBs& ScDBCollection::getNamedDBs() const -{ - return maNamedDBs; -} -ScDBCollection::AnonDBs& ScDBCollection::getAnonDBs() -{ - return maAnonDBs; -} -const ScDBCollection::AnonDBs& ScDBCollection::getAnonDBs() const -{ - return maAnonDBs; -} const ScDBData* ScDBCollection::GetDBAtCursor(SCCOL nCol, SCROW nRow, SCTAB nTab, bool bStartOnly) const { diff --git a/sc/source/core/tool/doubleref.cxx b/sc/source/core/tool/doubleref.cxx index 66a9edbbc043..547bc21e6aec 100644 --- a/sc/source/core/tool/doubleref.cxx +++ b/sc/source/core/tool/doubleref.cxx @@ -276,10 +276,6 @@ ScDBInternalRange::~ScDBInternalRange() { } -const ScRange& ScDBInternalRange::getRange() const -{ - return maRange; -} SCCOL ScDBInternalRange::getColSize() const { diff --git a/sc/source/core/tool/jumpmatrix.cxx b/sc/source/core/tool/jumpmatrix.cxx index adac4f68f6a3..625e425c18b4 100644 --- a/sc/source/core/tool/jumpmatrix.cxx +++ b/sc/source/core/tool/jumpmatrix.cxx @@ -110,10 +110,6 @@ void ScJumpMatrix::SetJumpParameters(ScTokenVec* p) pParams = p; } -const ScTokenVec* ScJumpMatrix::GetJumpParameters() const -{ - return pParams; -} void ScJumpMatrix::GetPos(SCSIZE& rCol, SCSIZE& rRow) const { diff --git a/sc/source/core/tool/queryentry.cxx b/sc/source/core/tool/queryentry.cxx index 455c8c6617cb..af739594a2a4 100644 --- a/sc/source/core/tool/queryentry.cxx +++ b/sc/source/core/tool/queryentry.cxx @@ -79,10 +79,6 @@ ScQueryEntry& ScQueryEntry::operator=( const ScQueryEntry& r ) return *this; } -ScQueryEntry::QueryItemsType& ScQueryEntry::GetQueryItems() -{ - return maQueryItems; -} void ScQueryEntry::SetQueryByEmpty() diff --git a/sc/source/core/tool/refdata.cxx b/sc/source/core/tool/refdata.cxx index 9a5bb0ca4431..435326514f30 100644 --- a/sc/source/core/tool/refdata.cxx +++ b/sc/source/core/tool/refdata.cxx @@ -41,10 +41,6 @@ void ScSingleRefData::InitAddressRel( const ScAddress& rAdr, const ScAddress& rP SetAddress(rAdr, rPos); } -sal_uInt8 ScSingleRefData::FlagValue() const -{ - return mnFlagValue; -} void ScSingleRefData::SetAbsCol( SCCOL nVal ) { @@ -102,30 +98,18 @@ void ScSingleRefData::SetColDeleted( bool bVal ) Flags.bColDeleted = bVal; } -bool ScSingleRefData::IsColDeleted() const -{ - return Flags.bColDeleted; -} void ScSingleRefData::SetRowDeleted( bool bVal ) { Flags.bRowDeleted = bVal; } -bool ScSingleRefData::IsRowDeleted() const -{ - return Flags.bRowDeleted; -} void ScSingleRefData::SetTabDeleted( bool bVal ) { Flags.bTabDeleted = bVal; } -bool ScSingleRefData::IsTabDeleted() const -{ - return Flags.bTabDeleted; -} bool ScSingleRefData::IsDeleted() const { diff --git a/sc/source/core/tool/refhint.cxx b/sc/source/core/tool/refhint.cxx index 56e21e41d035..8327b6186cec 100644 --- a/sc/source/core/tool/refhint.cxx +++ b/sc/source/core/tool/refhint.cxx @@ -20,25 +20,13 @@ RefMovedHint::RefMovedHint( const ScRange& rRange, const ScAddress& rMove ) : RefMovedHint::~RefMovedHint() {} -const ScRange& RefMovedHint::getRange() const -{ - return maRange; -} -const ScAddress& RefMovedHint::getDelta() const -{ - return maMoveDelta; -} RefColReorderHint::RefColReorderHint( const sc::ColReorderMapType& rColMap, SCTAB nTab, SCROW nRow1, SCROW nRow2 ) : RefHint(ColumnReordered), mrColMap(rColMap), mnTab(nTab), mnRow1(nRow1), mnRow2(nRow2) {} RefColReorderHint::~RefColReorderHint() {} -const sc::ColReorderMapType& RefColReorderHint::getColMap() const -{ - return mrColMap; -} diff --git a/sc/source/core/tool/tokenstringcontext.cxx b/sc/source/core/tool/tokenstringcontext.cxx index de23ddb7e7d4..3eb2f16b8474 100644 --- a/sc/source/core/tool/tokenstringcontext.cxx +++ b/sc/source/core/tool/tokenstringcontext.cxx @@ -137,10 +137,6 @@ void CompileFormulaContext::setGrammar( formula::FormulaGrammar::Grammar eGram ) updateTabNames(); } -const std::vector<OUString>& CompileFormulaContext::getTabNames() const -{ - return maTabNames; -} } diff --git a/sc/source/core/tool/typedstrdata.cxx b/sc/source/core/tool/typedstrdata.cxx index b13e49a4af6a..de9b8ba14a71 100644 --- a/sc/source/core/tool/typedstrdata.cxx +++ b/sc/source/core/tool/typedstrdata.cxx @@ -105,10 +105,6 @@ bool ScTypedStrData::IsStrData() const } -const OUString& ScTypedStrData::GetString() const -{ - return maStrValue; -} FindTypedStrData::FindTypedStrData(const ScTypedStrData& rVal, bool bCaseSens) : diff --git a/sc/source/core/tool/unitconv.cxx b/sc/source/core/tool/unitconv.cxx index 87f4c8d96d44..b9d5c61856c7 100644 --- a/sc/source/core/tool/unitconv.cxx +++ b/sc/source/core/tool/unitconv.cxx @@ -42,10 +42,6 @@ ScUnitConverterData::ScUnitConverterData( const ScUnitConverterData& r ) : ScUnitConverterData::~ScUnitConverterData() {} -const OUString& ScUnitConverterData::GetIndexString() const -{ - return maIndexString; -} OUString ScUnitConverterData::BuildIndexString( const OUString& rFromUnit, const OUString& rToUnit ) |