diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-01-16 00:17:32 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-08-24 18:47:18 (GMT) |
commit | 44ffb9cdb4329c5ed9b724659f234d26da336b5a (patch) | |
tree | 8f3d95ebc2c91465f071d37269b3c25f044fd5bb /Source/CPack/WiX/cmWIXSourceWriter.cxx | |
parent | 8f89f8b1e9693abbc50d917c04846000bf14e189 (diff) | |
download | CMake-44ffb9cdb4329c5ed9b724659f234d26da336b5a.zip CMake-44ffb9cdb4329c5ed9b724659f234d26da336b5a.tar.gz CMake-44ffb9cdb4329c5ed9b724659f234d26da336b5a.tar.bz2 |
Replace foo.size() pattern with !foo.empty().
Diffstat (limited to 'Source/CPack/WiX/cmWIXSourceWriter.cxx')
-rw-r--r-- | Source/CPack/WiX/cmWIXSourceWriter.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/CPack/WiX/cmWIXSourceWriter.cxx b/Source/CPack/WiX/cmWIXSourceWriter.cxx index 219fca8..8d38e9b 100644 --- a/Source/CPack/WiX/cmWIXSourceWriter.cxx +++ b/Source/CPack/WiX/cmWIXSourceWriter.cxx @@ -128,7 +128,7 @@ void cmWIXSourceWriter::AddAttribute( void cmWIXSourceWriter::AddAttributeUnlessEmpty( std::string const& key, std::string const& value) { - if(value.size()) + if(!value.empty()) { AddAttribute(key, value); } |