aboutsummaryrefslogtreecommitdiff
path: root/toolsrc
diff options
context:
space:
mode:
authorDevel@NB <devel71@hotmail.de>2016-11-27 07:56:00 +0100
committerDevel@NB <devel71@hotmail.de>2016-11-27 07:56:00 +0100
commitda17316d820ff3ef41274e96774bc931bf3db287 (patch)
tree7e3f7447683c0c1dfe3948064a122e2d4d74651f /toolsrc
parent282d979c7eb8a2ebaf7a815f688245450e844b29 (diff)
parentbc8a015889caa63c4d3ebac06714b1b5601e638e (diff)
downloadvcpkg-da17316d820ff3ef41274e96774bc931bf3db287.tar.gz
vcpkg-da17316d820ff3ef41274e96774bc931bf3db287.zip
Merge branch 'master' of https://github.com/Microsoft/vcpkg into qca
Diffstat (limited to 'toolsrc')
-rw-r--r--toolsrc/include/BuildInfo.h6
-rw-r--r--toolsrc/src/BuildInfo.cpp12
2 files changed, 9 insertions, 9 deletions
diff --git a/toolsrc/include/BuildInfo.h b/toolsrc/include/BuildInfo.h
index 22b4bed7d..7f64c51cc 100644
--- a/toolsrc/include/BuildInfo.h
+++ b/toolsrc/include/BuildInfo.h
@@ -46,8 +46,8 @@ namespace vcpkg
const ConfigurationType& config() const;
const LinkageType& linkage() const;
- const std::regex& crt_regex() const;
- const std::string& toString() const;
+ const std::regex crt_regex() const;
+ const std::string toString() const;
private:
BuildType(const ConfigurationType& config, const LinkageType& linkage, const std::string& crt_regex_as_string)
@@ -106,7 +106,7 @@ namespace vcpkg
OutdatedDynamicCrt() = delete;
- const std::regex& crt_regex() const;
+ 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 1f802869f..8d46a0dba 100644
--- a/toolsrc/src/BuildInfo.cpp
+++ b/toolsrc/src/BuildInfo.cpp
@@ -14,15 +14,15 @@ namespace vcpkg
return this->m_linkage;
}
- const std::regex& BuildType::crt_regex() const
+ 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
+ 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;
}
@@ -151,9 +151,9 @@ namespace vcpkg
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
+ 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;
}