From: Kern Sibbald Date: Sun, 25 Apr 2004 16:38:06 +0000 (+0000) Subject: Fix compile problem in wx-console on Win32 X-Git-Tag: Release-1.34.3~96 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0544e6ee11313eae634a3e3da834742868c24f0a;p=bacula%2Fbacula Fix compile problem in wx-console on Win32 git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@1303 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/wx-console/wxbrestorepanel.cpp b/bacula/src/wx-console/wxbrestorepanel.cpp index ceff310329..a16455a80a 100644 --- a/bacula/src/wx-console/wxbrestorepanel.cpp +++ b/bacula/src/wx-console/wxbrestorepanel.cpp @@ -399,13 +399,14 @@ void wxbRestorePanel::EnablePanel(bool enable) { /* The main button has been clicked */ void wxbRestorePanel::CmdStart() { + unsigned int i; if (status == activable) { wxbDataTokenizer* dt = WaitForEnd(".clients\n", true, false); wxString str; clientChoice->Clear(); cfgClient->Clear(); - for (unsigned int i = 0; i < dt->GetCount(); i++) { + for (i = 0; i < dt->GetCount(); i++) { str = (*dt)[i]; str.RemoveLast(); clientChoice->Append(str); @@ -417,7 +418,7 @@ void wxbRestorePanel::CmdStart() { dt = WaitForEnd(".filesets\n", true, false); cfgFileset->Clear(); - for (unsigned int i = 0; i < dt->GetCount(); i++) { + for (i = 0; i < dt->GetCount(); i++) { str = (*dt)[i]; str.RemoveLast(); cfgFileset->Append(str); @@ -1630,4 +1631,3 @@ void wxbTreeListPanel::OnTreeMarked(wxbTreeMarkedEvent& event) { void wxbTreeListPanel::OnListMarked(wxbListMarkedEvent& event) { parent->OnListMarked(event); } -