Removed pointer for regex expression

This commit is contained in:
Valera Cogut 2018-10-27 19:06:24 +03:00
parent 44896485d1
commit edd6fa8ded

View file

@ -20,8 +20,8 @@ namespace fc { namespace rpc {
static boost::regex& cli_regex_secret() static boost::regex& cli_regex_secret()
{ {
static boost::regex* regex_expr = new boost::regex(); static boost::regex regex_expr;
return *regex_expr; return regex_expr;
} }
static std::vector<std::string>& cli_commands() static std::vector<std::string>& cli_commands()