removed the goto provoking HP-UX compiler warnings

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6247 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2000-02-23 19:23:23 +00:00
parent b8b9762a1b
commit fc3398f8e0

View File

@@ -1844,7 +1844,11 @@ wxString wxDateTime::Format(const wxChar *format, const TimeZone& tz) const
fmt = _T("%02d");
}
restart:
bool restart = TRUE;
while ( restart )
{
restart = FALSE;
// start of the format specification
switch ( *p )
{
@@ -2077,7 +2081,9 @@ restart:
fmt.Prepend(_T('%'));
fmt.Append(_T('d'));
goto restart;
restart = TRUE;
break;
}
// no, it wasn't the width
@@ -2097,6 +2103,7 @@ restart:
break;
}
}
}
return res;
}