Add empty {}'s after while statements to silence warnings (and for safety!

Originally committed to SVN as r3456.
This commit is contained in:
Amar Takhar 2009-09-02 08:19:24 +00:00
parent 586f2297fc
commit aacc50702f

View file

@ -89,14 +89,14 @@ void AssTime::ParseASS (const wxString text) {
try {
// Hours
if (colons == 2) {
while (text[end++] != _T(':'));
while (text[end++] != _T(':')) {};
th = AegiStringToInt(text,pos,end);
pos = end;
}
// Minutes
if (colons >= 1) {
while (text[end++] != _T(':'));
while (text[end++] != _T(':')) {};
tm = AegiStringToInt(text,pos,end);
pos = end;
}