diff options
author | Brad King <brad.king@kitware.com> | 2017-09-19 12:26:30 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2017-09-19 12:27:00 (GMT) |
commit | 7c28081c147e2eb6c7ad6dee0aada77219af7a6d (patch) | |
tree | 92f007052e873070f18bd07f7b24a42bdc1160cc /Source/cmStateDirectory.cxx | |
parent | 8fee054ecaf039d4253a2e9cfeafb3c154704808 (diff) | |
parent | 5db3aac11177e3487544d02beecbaddb500d4c65 (diff) | |
download | CMake-7c28081c147e2eb6c7ad6dee0aada77219af7a6d.zip CMake-7c28081c147e2eb6c7ad6dee0aada77219af7a6d.tar.gz CMake-7c28081c147e2eb6c7ad6dee0aada77219af7a6d.tar.bz2 |
Merge topic 'string-clear'
5db3aac1 Meta: replace empty-string assignments with `clear()`.
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1276
Diffstat (limited to 'Source/cmStateDirectory.cxx')
-rw-r--r-- | Source/cmStateDirectory.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmStateDirectory.cxx b/Source/cmStateDirectory.cxx index 418f051..5aa8e5b 100644 --- a/Source/cmStateDirectory.cxx +++ b/Source/cmStateDirectory.cxx @@ -80,7 +80,7 @@ void cmStateDirectory::ComputeRelativePathTopBinary() if (result.size() < 2 || result.substr(0, 2) != "//") { this->DirectoryState->RelativePathTopBinary = result; } else { - this->DirectoryState->RelativePathTopBinary = ""; + this->DirectoryState->RelativePathTopBinary.clear(); } } @@ -422,7 +422,7 @@ const char* cmStateDirectory::GetProperty(const std::string& prop, bool chain) const { static std::string output; - output = ""; + output.clear(); if (prop == "PARENT_DIRECTORY") { cmStateSnapshot parent = this->Snapshot_.GetBuildsystemDirectoryParent(); if (parent.IsValid()) { |