From aacc50702fc939529af7ad5b8c6f5c4eb016efee Mon Sep 17 00:00:00 2001 From: Amar Takhar Date: Wed, 2 Sep 2009 08:19:24 +0000 Subject: [PATCH] Add empty {}'s after while statements to silence warnings (and for safety! Originally committed to SVN as r3456. --- aegisub/src/ass_time.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aegisub/src/ass_time.cpp b/aegisub/src/ass_time.cpp index c2d412546..511432c73 100644 --- a/aegisub/src/ass_time.cpp +++ b/aegisub/src/ass_time.cpp @@ -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; }