From f83f3759d3c8955780b2056f4c84bd5e07df01f6 Mon Sep 17 00:00:00 2001 From: Stefano Sanfilippo Date: Tue, 10 Mar 2015 21:09:22 +0100 Subject: [PATCH] Qualify global regexes as static const in main. --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index e7d42b8..182ebb6 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -39,8 +39,8 @@ using namespace monicelli; -boost::regex NAME_RE("^(.+)\\.mc$"); -boost::regex MODULE_RE("^(.+)\\.mm$"); +static const boost::regex NAME_RE("^(.+)\\.mc$"); +static const boost::regex MODULE_RE("^(.+)\\.mm$"); int process(std::string const&, std::function);