summaryrefslogtreecommitdiffstats
path: root/Source/cmArchiveWrite.cxx
diff options
context:
space:
mode:
authorDaniel Pfeifer <daniel@pfeifer-mail.de>2016-05-26 21:05:30 (GMT)
committerDaniel Pfeifer <daniel@pfeifer-mail.de>2016-06-02 19:35:50 (GMT)
commitc6220de27605f33b2793729680c32714cd126690 (patch)
treeedd5725b84c0d2ed910b9ec945d3086f5324f9aa /Source/cmArchiveWrite.cxx
parent9ca8c7a99f193179ebfc893060966c37e3efabca (diff)
downloadCMake-c6220de27605f33b2793729680c32714cd126690.zip
CMake-c6220de27605f33b2793729680c32714cd126690.tar.gz
CMake-c6220de27605f33b2793729680c32714cd126690.tar.bz2
Use the empty() method to check for emptyness.
Apply fix-its from clang-tidy's readability-container-size-empty checker.
Diffstat (limited to 'Source/cmArchiveWrite.cxx')
-rw-r--r--Source/cmArchiveWrite.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmArchiveWrite.cxx b/Source/cmArchiveWrite.cxx
index a0150ec..235cf88 100644
--- a/Source/cmArchiveWrite.cxx
+++ b/Source/cmArchiveWrite.cxx
@@ -255,7 +255,7 @@ bool cmArchiveWrite::AddFile(const char* file, size_t skip, const char* prefix)
archive_entry_set_gid(e, this->Gid.Get());
}
- if (this->Uname.size() && this->Gname.size()) {
+ if (!this->Uname.empty() && !this->Gname.empty()) {
archive_entry_set_uname(e, this->Uname.c_str());
archive_entry_set_gname(e, this->Gname.c_str());
}