more const correctness (slightly modified patch 1655991)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44464 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2007-02-11 03:08:33 +00:00
parent f8a280159d
commit a19918eb35
2 changed files with 20 additions and 20 deletions

View File

@@ -60,14 +60,14 @@ public:
wxMultiCellItemHandle( int row, int column, int height = 1, int width = 1, wxSize size = wxDefaultSize, wxResizable style = wxNOT_RESIZABLE, wxSize weight = wxSize(1,1), int align = wxALIGN_NOT); wxMultiCellItemHandle( int row, int column, int height = 1, int width = 1, wxSize size = wxDefaultSize, wxResizable style = wxNOT_RESIZABLE, wxSize weight = wxSize(1,1), int align = wxALIGN_NOT);
wxMultiCellItemHandle( int row, int column, wxSize size, wxResizable style = wxNOT_RESIZABLE, wxSize weight = wxSize(1,1), int align = wxALIGN_NOT); wxMultiCellItemHandle( int row, int column, wxSize size, wxResizable style = wxNOT_RESIZABLE, wxSize weight = wxSize(1,1), int align = wxALIGN_NOT);
wxMultiCellItemHandle( int row, int column, wxResizable style, wxSize weight = wxSize(1,1), int align = wxALIGN_NOT); wxMultiCellItemHandle( int row, int column, wxResizable style, wxSize weight = wxSize(1,1), int align = wxALIGN_NOT);
int GetColumn(); int GetColumn() const;
int GetRow(); int GetRow() const;
int GetWidth(); int GetWidth() const;
int GetHeight(); int GetHeight() const;
wxResizable GetStyle(); wxResizable GetStyle() const;
wxSize GetLocalSize(); wxSize GetLocalSize() const;
int GetAlignment(); int GetAlignment() const;
wxSize GetWeight(); wxSize GetWeight() const;
private: private:
void Initialize( int row, int column, int height = 1, int width = 1, wxSize size = wxDefaultSize, wxResizable style = wxNOT_RESIZABLE, wxSize weight = wxSize(1,1), int align = wxALIGN_NOT); void Initialize( int row, int column, int height = 1, int width = 1, wxSize size = wxDefaultSize, wxResizable style = wxNOT_RESIZABLE, wxSize weight = wxSize(1,1), int align = wxALIGN_NOT);
@@ -101,7 +101,7 @@ public:
private: private:
void GetMinimums(); void GetMinimums();
int Sum(int *array, int x); static int Sum(int *array, int x);
private: private:
int *m_maxHeight; int *m_maxHeight;
@@ -135,11 +135,11 @@ public:
void Add(wxWindow *win, unsigned int row, unsigned int col); void Add(wxWindow *win, unsigned int row, unsigned int col);
void Resize(int numRows, int numCols); void Resize(int numRows, int numCols);
int MaxRows() int MaxRows() const
{ {
return m_maxRows; return m_maxRows;
}; };
int MaxCols() int MaxCols() const
{ {
return m_maxCols; return m_maxCols;
}; };

View File

@@ -83,42 +83,42 @@ wxMultiCellItemHandle :: wxMultiCellItemHandle( int row, int column, wxResizable
Initialize(row, column, 1, 1, wxSize(1, 1), style, weight, align); Initialize(row, column, 1, 1, wxSize(1, 1), style, weight, align);
} }
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
int wxMultiCellItemHandle::GetColumn() int wxMultiCellItemHandle::GetColumn() const
{ {
return m_column; return m_column;
} }
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
int wxMultiCellItemHandle::GetRow() int wxMultiCellItemHandle::GetRow() const
{ {
return m_row; return m_row;
} }
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
int wxMultiCellItemHandle::GetWidth() int wxMultiCellItemHandle::GetWidth() const
{ {
return m_width; return m_width;
} }
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
int wxMultiCellItemHandle::GetHeight() int wxMultiCellItemHandle::GetHeight() const
{ {
return m_height; return m_height;
} }
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
wxResizable wxMultiCellItemHandle :: GetStyle() wxResizable wxMultiCellItemHandle :: GetStyle() const
{ {
return m_style; return m_style;
}; };
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
wxSize wxMultiCellItemHandle :: GetLocalSize() wxSize wxMultiCellItemHandle :: GetLocalSize() const
{ {
return m_fixedSize; return m_fixedSize;
}; };
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
int wxMultiCellItemHandle :: GetAlignment() int wxMultiCellItemHandle :: GetAlignment() const
{ {
return m_alignment; return m_alignment;
}; };
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
wxSize wxMultiCellItemHandle :: GetWeight() wxSize wxMultiCellItemHandle :: GetWeight() const
{ {
return m_weight; return m_weight;
}; };
@@ -510,7 +510,7 @@ void wxMultiCellSizer :: GetMinimums()
* *
*/ */
int wxMultiCellSizer :: Sum(int *array, int x) /* static */ int wxMultiCellSizer :: Sum(int *array, int x)
{ {
int sum = 0; int sum = 0;
while (x--) while (x--)