mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-02-24 03:27:12 +01:00
Don't return by const value
This commit is contained in:
parent
372d339977
commit
519c542507
@ -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)
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user