const as const can

This commit is contained in:
Dennis Luxen 2014-06-06 18:06:05 +02:00
parent 0ed9caf969
commit 2ad572490c

View File

@ -48,7 +48,7 @@ inline bool durationIsValid(const std::string &s)
std::vector<std::string> result;
boost::algorithm::split_regex(result, s, boost::regex(":"));
bool matched = regex_match(s, e);
const bool matched = regex_match(s, e);
return matched;
}
@ -63,7 +63,7 @@ inline unsigned parseDuration(const std::string &s)
std::vector<std::string> result;
boost::algorithm::split_regex(result, s, boost::regex(":"));
bool matched = regex_match(s, e);
const bool matched = regex_match(s, e);
if (matched)
{
if (1 == result.size())