diff options
| author | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2020-04-30 10:00:00 -0400 |
|---|---|---|
| committer | Brad King <brad.king@kitware.com> | 2020-04-30 10:27:16 -0400 |
| commit | 53675adbcf2f485d68c45e53d28baf6db220264c (patch) | |
| tree | 8d0d761714de6f0a8f7c512f1af05e2f6bde493b /Source/cmXCodeScheme.cxx | |
| parent | c09efe074d793203ab846e97bde8d03e4714dc2a (diff) | |
| download | cmake-53675adbcf2f485d68c45e53d28baf6db220264c.tar.gz | |
GetSafeProperty: return std::string const&
Diffstat (limited to 'Source/cmXCodeScheme.cxx')
| -rw-r--r-- | Source/cmXCodeScheme.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmXCodeScheme.cxx b/Source/cmXCodeScheme.cxx index aab367afeb..9ac14575aa 100644 --- a/Source/cmXCodeScheme.cxx +++ b/Source/cmXCodeScheme.cxx @@ -405,8 +405,9 @@ void cmXCodeScheme::WriteBuildableReference(cmXMLWriter& xout, void cmXCodeScheme::WriteCustomWorkingDirectory( cmXMLWriter& xout, const std::string& configuration) { - std::string propertyValue = this->Target->GetTarget()->GetSafeProperty( - "XCODE_SCHEME_WORKING_DIRECTORY"); + std::string const& propertyValue = + this->Target->GetTarget()->GetSafeProperty( + "XCODE_SCHEME_WORKING_DIRECTORY"); if (propertyValue.empty()) { xout.Attribute("useCustomWorkingDirectory", "NO"); } else { |
