X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5d2ac6b8c652a4aac703ba03f143820e978b33d4..0f1b6d7b589f19cd93f3a5500fedd66312a282ec:/demos/dbbrowse/dbtree.cpp 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)