Removed warning about for(;;) variable lookup

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4094 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Matthias Melcher 2005-03-09 21:35:09 +00:00
parent 00651bc412
commit 327f5f14a5

View File

@ -755,7 +755,8 @@ void Fl_Comment_Type::open() {
db.deleteEntry(itempath);
comment_predefined->remove(last_selected_item);
Fl_Preferences menu(Fl_Preferences::USER, "fltk.org", "fluid_comments_menu");
for (int i=4, n=0; i<comment_predefined->size(); i++) {
int i, n;
for (i=4, n=0; i<comment_predefined->size(); i++) {
const Fl_Menu_Item *mi = comment_predefined->menu()+i;
if (comment_predefined->item_pathname(itempath, 255, mi)==0) {
if (itempath[0]=='/') memmove(itempath, itempath+1, 255);