summaryrefslogtreecommitdiffstats
path: root/Source/CPack
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-09-22 14:10:55 (GMT)
committerKitware Robot <kwrobot@kitware.com>2017-09-22 14:11:23 (GMT)
commit00389afa345378244105c363d273f654d0ddd00a (patch)
tree627990f71927e7ddce75859d08de6baa962f2505 /Source/CPack
parent583d8e55acf79f7f6e1e9c4fdae6f83561d0c7c1 (diff)
parent37d9387be37b5ad51b518d5df467b64e88f73350 (diff)
downloadCMake-00389afa345378244105c363d273f654d0ddd00a.zip
CMake-00389afa345378244105c363d273f654d0ddd00a.tar.gz
CMake-00389afa345378244105c363d273f654d0ddd00a.tar.bz2
Merge topic 'string-empty'
37d9387b Replace empty-string comparisons with checking against `empty()`. Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1275
Diffstat (limited to 'Source/CPack')
-rw-r--r--Source/CPack/IFW/cmCPackIFWRepository.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/CPack/IFW/cmCPackIFWRepository.cxx b/Source/CPack/IFW/cmCPackIFWRepository.cxx
index 87e7089..a01fc4e 100644
--- a/Source/CPack/IFW/cmCPackIFWRepository.cxx
+++ b/Source/CPack/IFW/cmCPackIFWRepository.cxx
@@ -162,7 +162,7 @@ protected:
void CharacterDataHandler(const char* data, int length) override
{
std::string content(data, data + length);
- if (content == "" || content == " " || content == " " ||
+ if (content.empty() || content == " " || content == " " ||
content == "\n") {
return;
}