From e3c7585b472744c6101bb714022f7545bb650493 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sun, 8 Jun 2008 16:00:06 +0000 Subject: [PATCH] Add missing includes Fix a gcc 4.3 style warning --- source/regex.cpp | 4 +++- source/utils.cpp | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) 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" -- 2.45.2