Mercurial > mercurial > hgweb_searcher2.cgi
diff src/main.cpp @ 16:b67c74848dd0
fix bugs.
author | pyon@macmini |
---|---|
date | Sat, 09 Jul 2011 08:30:00 +0900 |
parents | 24e0775af32e |
children | 710be7b6a873 |
line wrap: on
line diff
--- a/src/main.cpp Fri Jul 01 20:13:49 2011 +0900 +++ b/src/main.cpp Sat Jul 09 08:30:00 2011 +0900 @@ -1,5 +1,5 @@ // Filename : main.cpp -// Last Change: 22-Jun-2011. +// Last Change: 06-Jul-2011. // #include "common.h" @@ -48,12 +48,11 @@ wxString key; config->SetPath( wxT("/SearchHistory") ); - for ( int i=0; i<5; i++ ) { + for ( int i=0; i<10; i++ ) { key.Printf( wxT("h%02d"), i ); config->Write( key, searchhist[i] ); } - delete config; return 0; @@ -73,7 +72,7 @@ wxString key; wxString value; config->SetPath( wxT("/SearchHistory") ); - for ( int i=0; i<5; i++ ) { + for ( int i=0; i<10; i++ ) { key.Printf( wxT("h%02d"), i ); config->Read( key, &value ); searchhist.Add( value );