diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2016-11-29 11:33:32 -0800 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2016-11-29 11:33:32 -0800 |
| commit | 519c54250792cbd2a321f6b4292aeb4d4e3c1a2b (patch) | |
| tree | 7cbd408ae99aaee2c384204b3eca57b7d0980a1c | |
| parent | 372d339977dc4f8977c73ed1dde9e71ae34f40f5 (diff) | |
| download | vcpkg-519c54250792cbd2a321f6b4292aeb4d4e3c1a2b.tar.gz vcpkg-519c54250792cbd2a321f6b4292aeb4d4e3c1a2b.zip | |
Don't return by const value
| -rw-r--r-- | toolsrc/include/BuildInfo.h | 4 | ||||
| -rw-r--r-- | toolsrc/src/BuildInfo.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/toolsrc/include/BuildInfo.h b/toolsrc/include/BuildInfo.h index 7f64c51cc..ccf40abbf 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; + std::regex crt_regex() const; + std::string toString() const; private: BuildType(const ConfigurationType& config, const LinkageType& linkage, const std::string& crt_regex_as_string) diff --git a/toolsrc/src/BuildInfo.cpp b/toolsrc/src/BuildInfo.cpp index 8d46a0dba..44c7fdcf0 100644 --- a/toolsrc/src/BuildInfo.cpp +++ b/toolsrc/src/BuildInfo.cpp @@ -14,13 +14,13 @@ namespace vcpkg return this->m_linkage; } - const std::regex BuildType::crt_regex() const + std::regex BuildType::crt_regex() const { const std::regex r(this->m_crt_regex_as_string, std::regex_constants::icase); return r; } - const std::string BuildType::toString() const + std::string BuildType::toString() const { const std::string s = Strings::format("[%s,%s]", to_string(this->m_config), to_string(this->m_linkage)); return s; |
