summaryrefslogtreecommitdiffstats
path: root/sc/inc
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-08-10 03:01:33 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-08-10 19:51:08 +0200
commit07616ec2bd3dba7b858d801dbcd94e1089e3532a (patch)
tree354caab8bb94573652a65794e3c1f18dde56098b /sc/inc
parentfdo#53006: Remove directories too, not just plain files (diff)
downloadcore-07616ec2bd3dba7b858d801dbcd94e1089e3532a.tar.gz
core-07616ec2bd3dba7b858d801dbcd94e1089e3532a.zip
make more methods const in ScTable
Change-Id: Ib61ab9ea33ea94d6175a2110105849279d1ad440
Diffstat (limited to 'sc/inc')
-rw-r--r--sc/inc/table.hxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/sc/inc/table.hxx b/sc/inc/table.hxx
index f4709bf873da..10d25f8e57d3 100644
--- a/sc/inc/table.hxx
+++ b/sc/inc/table.hxx
@@ -311,7 +311,7 @@ public:
void SetValue( SCCOL nCol, SCROW nRow, const double& rVal );
void SetError( SCCOL nCol, SCROW nRow, sal_uInt16 nError);
- void GetString( SCCOL nCol, SCROW nRow, rtl::OUString& rString );
+ void GetString( SCCOL nCol, SCROW nRow, rtl::OUString& rString ) const;
void GetInputString( SCCOL nCol, SCROW nRow, rtl::OUString& rString ) const;
double GetValue( const ScAddress& rPos ) const
{
@@ -852,15 +852,15 @@ private:
ScRangeList& rMatchedRanges, rtl::OUString& rUndoStr, ScDocument* pUndoDoc);
// use the global sort parameter:
- bool IsSorted(SCCOLROW nStart, SCCOLROW nEnd);
+ bool IsSorted(SCCOLROW nStart, SCCOLROW nEnd) const;
void DecoladeRow( ScSortInfoArray*, SCROW nRow1, SCROW nRow2 );
void SwapCol(SCCOL nCol1, SCCOL nCol2);
void SwapRow(SCROW nRow1, SCROW nRow2);
short CompareCell( sal_uInt16 nSort,
ScBaseCell* pCell1, SCCOL nCell1Col, SCROW nCell1Row,
- ScBaseCell* pCell2, SCCOL nCell2Col, SCROW nCell2Row );
- short Compare(SCCOLROW nIndex1, SCCOLROW nIndex2);
- short Compare( ScSortInfoArray*, SCCOLROW nIndex1, SCCOLROW nIndex2);
+ ScBaseCell* pCell2, SCCOL nCell2Col, SCROW nCell2Row ) const;
+ short Compare(SCCOLROW nIndex1, SCCOLROW nIndex2) const;
+ short Compare( ScSortInfoArray*, SCCOLROW nIndex1, SCCOLROW nIndex2) const;
ScSortInfoArray* CreateSortInfoArray( SCCOLROW nInd1, SCCOLROW nInd2 );
void QuickSort( ScSortInfoArray*, SCsCOLROW nLo, SCsCOLROW nHi);
void SortReorder( ScSortInfoArray*, ScProgress& );