From ee6694a71113d10022825672dd1d49e9eff6d800 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 18 Feb 2000 20:45:56 +0000 Subject: [PATCH] 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 --- src/generic/grid.cpp | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index b93201eeb2..7d8601230a 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -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 -- 2.45.2