Make regex const.

This commit is contained in:
tastytea 2021-05-27 09:46:59 +02:00
parent 8ed72af8e9
commit 29ae22cc4a
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ std::vector<match> search(const fs::path &filepath, std::string_view regex,
flags |= boost::regex::icase;
}
boost::regex re(regex.data(), flags);
const boost::regex re(regex.data(), flags);
std::vector<match> matches;
for (const auto &entry : zip::list(filepath))
{