diff options
author | Brad King <brad.king@kitware.com> | 2017-09-22 14:10:55 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2017-09-22 14:11:23 (GMT) |
commit | 00389afa345378244105c363d273f654d0ddd00a (patch) | |
tree | 627990f71927e7ddce75859d08de6baa962f2505 /Source/CPack | |
parent | 583d8e55acf79f7f6e1e9c4fdae6f83561d0c7c1 (diff) | |
parent | 37d9387be37b5ad51b518d5df467b64e88f73350 (diff) | |
download | CMake-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.cxx | 2 |
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; } |