X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5d2ac6b8c652a4aac703ba03f143820e978b33d4..d1ae263893419a87f0e7a67bbcbaf86c350ffdfe:/demos/dbbrowse/dbtree.cpp?ds=sidebyside diff --git a/demos/dbbrowse/dbtree.cpp b/demos/dbbrowse/dbtree.cpp index 9a0c7b217b..751e730d0d 100644 --- a/demos/dbbrowse/dbtree.cpp +++ b/demos/dbbrowse/dbtree.cpp @@ -8,13 +8,7 @@ // Copyright: (c) Mark Johnson, Berlin Germany // Licence: wxWindows license //---------------------------------------------------------------------------------------- -//-- all #ifdefs that the whole Project needs. ------------------------------------------- -//---------------------------------------------------------------------------------------- -#ifdef __GNUG__ -#pragma implementation -#pragma interface -#endif -//---------------------------------------------------------------------------------------- + // For compilers that support precompilation, includes "wx/wx.h". #include "wx/wxprec.h" //---------------------------------------------------------------------------------------- @@ -281,7 +275,7 @@ void DBTree::OnSelChanged(wxTreeEvent& WXUNUSED(event)) //------------------------------------------------------------------------------------- if (Temp1.Contains(_T("ODBC-"))) { - Temp1 = Temp1.Mid(5,wxSTRING_MAXLEN); + Temp1 = Temp1.Mid(5); for (i=0;ii_DSN;i++) { if (Temp1 == (pDoc->p_DSN+i)->Dsn)