]> git.tdb.fi Git - libs/core.git/commitdiff
Add missing includes
authorMikko Rasa <tdb@tdb.fi>
Sun, 8 Jun 2008 16:00:06 +0000 (16:00 +0000)
committerMikko Rasa <tdb@tdb.fi>
Sun, 8 Jun 2008 16:00:06 +0000 (16:00 +0000)
Fix a gcc 4.3 style warning

source/regex.cpp
source/utils.cpp

index 48fe4a7c3422fb027c40481d1f7d39b8fc7010d3..a1babf46d019b77a1db433a92ed447a0fbd2d6a2 100644 (file)
@@ -4,7 +4,9 @@ This file is part of libmspstrings
 Copyright © 2007 Mikko Rasa
 Distributed under the LGPL
 */
+
 #include <stack>
+#include <limits>
 #include <msp/core/except.h>
 #include "formatter.h"
 #include "regex.h"
@@ -306,7 +308,7 @@ Regex::Code Regex::parse_brackets(const string &str, string::const_iterator &ite
        }
 
        string::const_iterator end=iter;
-       for(; (end!=str.end() && (end==iter || *end!=']')); ++end);
+       for(; (end!=str.end() && (end==iter || *end!=']')); ++end) ;
        if(end==str.end())
                throw InvalidParameterValue("Unmatched '['");
 
index 2232527dbdbab79696a3f6011935a690f3201bae..d67cc7e8bcd3947f62947be762af28aa60bf3f30 100644 (file)
@@ -5,6 +5,7 @@ Copyright © 2006-2007 Mikko Rasa
 Distributed under the LGPL
 */
 
+#include <algorithm>
 #include <list>
 #include <msp/core/except.h>
 #include "utils.h"