diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2016-12-16 20:17:24 -0800 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2016-12-16 20:17:24 -0800 |
| commit | 835693ce97f271c0213f65c1c782e8df84cfb409 (patch) | |
| tree | 8faf7e8c7b7ea83cbfdede8e89c41eac99c086a2 | |
| parent | 73bf8306b29d68853dc3c97d5dd415bd5e857cf5 (diff) | |
| download | vcpkg-835693ce97f271c0213f65c1c782e8df84cfb409.tar.gz vcpkg-835693ce97f271c0213f65c1c782e8df84cfb409.zip | |
Don't return by const value
| -rw-r--r-- | toolsrc/include/BuildInfo.h | 2 | ||||
| -rw-r--r-- | toolsrc/src/BuildInfo.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/toolsrc/include/BuildInfo.h b/toolsrc/include/BuildInfo.h index 9f872385e..49811d521 100644 --- a/toolsrc/include/BuildInfo.h +++ b/toolsrc/include/BuildInfo.h @@ -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: diff --git a/toolsrc/src/BuildInfo.cpp b/toolsrc/src/BuildInfo.cpp index ddd44a1e6..f151a3ea5 100644 --- a/toolsrc/src/BuildInfo.cpp +++ b/toolsrc/src/BuildInfo.cpp @@ -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; |
