aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/src
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2016-11-26 02:49:42 -0800
committerRobert Schumacher <roschuma@microsoft.com>2016-11-26 02:49:42 -0800
commitcc7ee77d9031853580eeecd8c80ca195a8ae9bd6 (patch)
tree8d26ba970efe460310ee244caf408b6d04ec5f2b /toolsrc/src
parent89ba3171cc8e6d116b28b2a06a56f2f57f01dca6 (diff)
downloadvcpkg-cc7ee77d9031853580eeecd8c80ca195a8ae9bd6.tar.gz
vcpkg-cc7ee77d9031853580eeecd8c80ca195a8ae9bd6.zip
[vcpkg] The static keyword at member function scope is not once-per-instance, it's once-per-function
Diffstat (limited to 'toolsrc/src')
-rw-r--r--toolsrc/src/BuildInfo.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/toolsrc/src/BuildInfo.cpp b/toolsrc/src/BuildInfo.cpp
index 1f802869f..3fc56efc0 100644
--- a/toolsrc/src/BuildInfo.cpp
+++ b/toolsrc/src/BuildInfo.cpp
@@ -16,13 +16,13 @@ namespace vcpkg
const std::regex& BuildType::crt_regex() const
{
- static const std::regex r(this->m_crt_regex_as_string, std::regex_constants::icase);
+ const std::regex r(this->m_crt_regex_as_string, std::regex_constants::icase);
return r;
}
const std::string& BuildType::toString() const
{
- static const std::string s = Strings::format("[%s,%s]", to_string(this->m_config), to_string(this->m_linkage));
+ const std::string s = Strings::format("[%s,%s]", to_string(this->m_config), to_string(this->m_linkage));
return s;
}
@@ -153,7 +153,7 @@ namespace vcpkg
const std::regex& OutdatedDynamicCrt::crt_regex() const
{
- static const std::regex r(this->m_crt_regex_as_string, std::regex_constants::icase);
+ const std::regex r(this->m_crt_regex_as_string, std::regex_constants::icase);
return r;
}