From 29ae22cc4a13d37c2b3c382207db4e6ba9575438 Mon Sep 17 00:00:00 2001 From: tastytea Date: Thu, 27 May 2021 09:46:59 +0200 Subject: [PATCH] Make regex const. --- src/search.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/search.cpp b/src/search.cpp index 1a9c5c8..84eba40 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -60,7 +60,7 @@ std::vector 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 matches; for (const auto &entry : zip::list(filepath)) {