mail[Wesnoth-commits] r44254 - /trunk/src/serialization/tokenizer.cpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by guillaume . melquiond on July 17, 2010 - 19:09:
Author: silene
Date: Sat Jul 17 19:09:29 2010
New Revision: 44254

URL: http://svn.gna.org/viewcvs/wesnoth?rev=44254&view=rev
Log:
Factored code a bit.

Modified:
    trunk/src/serialization/tokenizer.cpp

Modified: trunk/src/serialization/tokenizer.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/serialization/tokenizer.cpp?rev=44254&r1=44253&r2=44254&view=diff
==============================================================================
--- trunk/src/serialization/tokenizer.cpp (original)
+++ trunk/src/serialization/tokenizer.cpp Sat Jul 17 19:09:29 2010
@@ -172,9 +172,6 @@
                        } else {
                                textdomain_ += current_;
                        }
-                       next_char_fast();
-               }
-               while (current_ != '\n' && current_ != EOF) {
                        next_char_fast();
                }
        }
@@ -211,15 +208,9 @@
                        }
                        next_char_fast();
                }
-               while (current_ != '\n' && current_ != EOF) {
-                       next_char_fast();
-               }
-       }
-       else
-       {
-               // Neither a textdomain or line comment skip it.
-               while (current_ != '\n' && current_ != EOF) {
-                       next_char_fast();
-               }
-       }
-}
+       }
+
+       while (current_ != '\n' && current_ != EOF) {
+               next_char_fast();
+       }
+}




Related Messages


Powered by MHonArc, Updated Sat Jul 17 19:20:11 2010