mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-14 12:14:14 +08:00
Don't return by const value
This commit is contained in:
parent
73bf8306b2
commit
835693ce97
@ -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:
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user