From 0544e6ee11313eae634a3e3da834742868c24f0a Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sun, 25 Apr 2004 16:38:06 +0000 Subject: [PATCH] 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 --- bacula/src/wx-console/wxbrestorepanel.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); } - -- 2.39.5