]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Changed evaluation order 594/head
authorMFraters <menno.fraters@outlook.com>
Tue, 24 Feb 2015 13:38:40 +0000 (14:38 +0100)
committerMFraters <menno.fraters@outlook.com>
Tue, 24 Feb 2015 13:38:40 +0000 (14:38 +0100)
source/base/utilities.cc

index 6507542bb7a7ea7c0e8925b9a470449ca951f6d9..d6cb0fb560c567b43d85b920f76f02200796077a 100644 (file)
@@ -219,7 +219,7 @@ namespace Utilities
                (name[0] == ' '))
           name.erase (0,1);
 
-        while (name[name.length()-1] == ' ' && name.length() != 0)
+        while (name.length() != 0 && name[name.length()-1] == ' ')
           name.erase (name.length()-1, 1);
 
         split_list.push_back (name);

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.