aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/include
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2016-11-26 02:51:12 -0800
committerRobert Schumacher <roschuma@microsoft.com>2016-11-26 02:51:12 -0800
commit692d95c865f271d0805a60fff63fb319c1985ad3 (patch)
tree18b76ec850e3830ab626d59471366c51e86ba4a7 /toolsrc/include
parentcc7ee77d9031853580eeecd8c80ca195a8ae9bd6 (diff)
downloadvcpkg-692d95c865f271d0805a60fff63fb319c1985ad3.tar.gz
vcpkg-692d95c865f271d0805a60fff63fb319c1985ad3.zip
[vcpkg] Do not return references to locals
Diffstat (limited to 'toolsrc/include')
-rw-r--r--toolsrc/include/BuildInfo.h6
1 files changed, 3 insertions, 3 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: