]> git.saurik.com Git - wxWidgets.git/commitdiff
auto arrays can't be initialized - compile error for HP-UX
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 18 Feb 2000 20:45:56 +0000 (20:45 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 18 Feb 2000 20:45:56 +0000 (20:45 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6143 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/grid.cpp

index b93201eeb22f5df1e01983424986bd24d9630844..7d8601230ade0e32f5b6b267f7b1fe0c2fe786b8 100644 (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