Fix to factory template.

Originally committed to SVN as r869.
This commit is contained in:
Rodrigo Braz Monteiro 2007-01-21 23:45:06 +00:00
parent 62bdfae3bf
commit 8aee6bd50b
1 changed files with 1 additions and 0 deletions

View File

@ -64,6 +64,7 @@ protected:
public:
static wxArrayString GetFactoryList(wxString favourite=_T("")) {
if (factories == NULL) factories = new std::map<wxString,T*>;
wxArrayString list;
favourite = favourite.Lower();
for (std::map<wxString,T*>::iterator cur=factories->begin();cur!=factories->end();cur++) {