From: <pst...@us...> - 2011-07-28 17:28:12
|
Revision: 852 http://jazzplusplus.svn.sourceforge.net/jazzplusplus/?rev=852&view=rev Author: pstieber Date: 2011-07-28 17:28:03 +0000 (Thu, 28 Jul 2011) Log Message: ----------- Removed in clude of DeprecatedStringUtils.h and made some cosmetic changes. Modified Paths: -------------- trunk/jazz/src/NamedChoice.cpp Modified: trunk/jazz/src/NamedChoice.cpp =================================================================== --- trunk/jazz/src/NamedChoice.cpp 2011-07-28 17:24:14 UTC (rev 851) +++ trunk/jazz/src/NamedChoice.cpp 2011-07-28 17:28:03 UTC (rev 852) @@ -23,7 +23,6 @@ #include "NamedChoice.h" #include "NamedValue.h" -#include "DeprecatedStringUtils.h" #include "DeprecatedWx/proplist.h" using namespace std; @@ -49,12 +48,17 @@ SetValue(); // following adapted from wxwin/src/base/wb_form.cc - wxList *list = new wxList; + wxList* pList = new wxList; for (int i = 0; mpValues[i].Name; i++) - if (*mpValues[i].Name) // omit empty entries - list->Append((wxObject *)copystring(mpValues[i].Name)); + { + // Omit empty entries. + if (*mpValues[i].Name) + { + pList->Append((wxObject *)copystring(mpValues[i].Name)); + } + } - wxFormItemConstraint *constraint = wxMakeConstraintStrings(list); + wxFormItemConstraint *constraint = wxMakeConstraintStrings(pList); return wxMakeFormString( mpTitle, &mpSelection, This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |