]> git.saurik.com Git - wxWidgets.git/blobdiff - src/xrc/xh_statbar.cpp
Use of blobs with a binding to a SQL_C_BINARY type column definition was not working...
[wxWidgets.git] / src / xrc / xh_statbar.cpp
index d69735c63b31ce698341baa6d523c669bd4e93b0..a31db982a4229414e86798eddce32db3f4c05031 100644 (file)
@@ -3,7 +3,7 @@
 // Purpose:     XRC resource for wxStatusBar
 // Author:      Brian Ravnsgaard Riis
 // Created:     2004/01/21
 // Purpose:     XRC resource for wxStatusBar
 // Author:      Brian Ravnsgaard Riis
 // Created:     2004/01/21
-// RCS-ID:      
+// RCS-ID:      $Id$
 // Copyright:   (c) 2004 Brian Ravnsgaard Riis
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 // Copyright:   (c) 2004 Brian Ravnsgaard Riis
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
@@ -27,7 +27,9 @@
 #include "wx/xrc/xh_statbar.h"
 #include "wx/statusbr.h"
 
 #include "wx/xrc/xh_statbar.h"
 #include "wx/statusbr.h"
 
-wxStatusBarXmlHandler::wxStatusBarXmlHandler() : 
+IMPLEMENT_DYNAMIC_CLASS(wxStatusBarXmlHandler, wxXmlResourceHandler)
+
+wxStatusBarXmlHandler::wxStatusBarXmlHandler() :
         wxXmlResourceHandler()
 {
     XRC_ADD_STYLE(wxST_SIZEGRIP);
         wxXmlResourceHandler()
 {
     XRC_ADD_STYLE(wxST_SIZEGRIP);
@@ -49,8 +51,8 @@ wxObject *wxStatusBarXmlHandler::DoCreateResource()
     if(fields > 1)
     {
         int *width = new int[fields];
     if(fields > 1)
     {
         int *width = new int[fields];
-  
-        for (unsigned int i = 0; i < fields; ++i)
+
+        for (int i = 0; i < fields; ++i)
         {
             width[i] = wxAtoi(widths.BeforeFirst(wxT(',')));
             if(widths.Find(wxT(',')))
         {
             width[i] = wxAtoi(widths.BeforeFirst(wxT(',')));
             if(widths.Find(wxT(',')))