From 32fe862b8cf35de9221f7ccc8145fcbf80c7041d Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Thu, 27 Jul 2023 18:22:41 -0400 Subject: clang-tidy: fix `readability-container-size-empty` lints --- Source/CPack/WiX/cmCPackWIXGenerator.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/CPack/WiX/cmCPackWIXGenerator.cxx b/Source/CPack/WiX/cmCPackWIXGenerator.cxx index 31ddb0e..2853ab9 100644 --- a/Source/CPack/WiX/cmCPackWIXGenerator.cxx +++ b/Source/CPack/WiX/cmCPackWIXGenerator.cxx @@ -803,7 +803,7 @@ bool cmCPackWIXGenerator::CreateShortcutsOfSpecificType( } std::string componentId = "CM_SHORTCUT"; - if (idPrefix.size()) { + if (!idPrefix.empty()) { componentId += cmStrCat('_', idPrefix); } -- cgit v0.12