auto arrays can't be initialized - compile error for HP-UX

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6143 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2000-02-18 20:45:56 +00:00
parent 619fda4f5a
commit ee6694a711

View File

@ -226,6 +226,8 @@ private:
class WXDLLEXPORT wxGridRowOrColAttrData
{
public:
// empty ctor to suppress warnings
wxGridRowOrColAttrData() { }
~wxGridRowOrColAttrData();
void SetAttr(wxGridCellAttr *attr, int rowOrCol);
@ -5987,7 +5989,12 @@ void wxGrid::SelectRow( int row, bool addToSelected )
if ( IsSelection() && addToSelected )
{
wxRect rect[4];
bool need_refresh[4] = { FALSE, FALSE, FALSE, FALSE };
bool need_refresh[4];
need_refresh[0] =
need_refresh[1] =
need_refresh[2] =
need_refresh[3] = FALSE;
int i;
wxCoord oldLeft = m_selectedTopLeft.GetCol();
@ -6064,7 +6071,11 @@ void wxGrid::SelectCol( int col, bool addToSelected )
if ( IsSelection() && addToSelected )
{
wxRect rect[4];
bool need_refresh[4] = { FALSE, FALSE, FALSE, FALSE };
bool need_refresh[4];
need_refresh[0] =
need_refresh[1] =
need_refresh[2] =
need_refresh[3] = FALSE;
int i;
wxCoord oldLeft = m_selectedTopLeft.GetCol();
@ -6166,7 +6177,11 @@ void wxGrid::SelectBlock( int topRow, int leftCol, int bottomRow, int rightCol )
// Either one rectangle is a real subset of the
// other, or they are (almost) disjoint!
wxRect rect[4];
bool need_refresh[4] = { FALSE, FALSE, FALSE, FALSE };
bool need_refresh[4];
need_refresh[0] =
need_refresh[1] =
need_refresh[2] =
need_refresh[3] = FALSE;
int i;
// Store intermediate values