Don't return by const value

This commit is contained in:
Alexander Karatarakis 2016-12-16 20:17:24 -08:00
parent 73bf8306b2
commit 835693ce97
2 changed files with 2 additions and 2 deletions

View File

@ -104,7 +104,7 @@ namespace vcpkg { namespace PostBuildLint
OutdatedDynamicCrt() = delete;
const std::regex crt_regex() const;
std::regex crt_regex() const;
const std::string& toString() const;
private:

View File

@ -151,7 +151,7 @@ namespace vcpkg { namespace PostBuildLint
const OutdatedDynamicCrt OutdatedDynamicCrt::MSVCRT20_DLL = OutdatedDynamicCrt("msvcrt20.dll", R"(msvcrt20\.dll)");;
const OutdatedDynamicCrt OutdatedDynamicCrt::MSVCRT40_DLL = OutdatedDynamicCrt("msvcrt40.dll", R"(msvcrt40\.dll)");;
const std::regex OutdatedDynamicCrt::crt_regex() const
std::regex OutdatedDynamicCrt::crt_regex() const
{
const std::regex r(this->m_crt_regex_as_string, std::regex_constants::icase);
return r;