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