From: Mikko Rasa Date: Sun, 8 Jun 2008 16:00:06 +0000 (+0000) Subject: Add missing includes X-Git-Tag: strings-1.0~5 X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=commitdiff_plain;h=e3c7585b472744c6101bb714022f7545bb650493 Add missing includes Fix a gcc 4.3 style warning --- diff --git a/source/regex.cpp b/source/regex.cpp index 48fe4a7..a1babf4 100644 --- a/source/regex.cpp +++ b/source/regex.cpp @@ -4,7 +4,9 @@ This file is part of libmspstrings Copyright © 2007 Mikko Rasa Distributed under the LGPL */ + #include +#include #include #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 '['"); diff --git a/source/utils.cpp b/source/utils.cpp index 2232527..d67cc7e 100644 --- a/source/utils.cpp +++ b/source/utils.cpp @@ -5,6 +5,7 @@ Copyright © 2006-2007 Mikko Rasa Distributed under the LGPL */ +#include #include #include #include "utils.h"