diff options
| author | Alexander Kornienko <alexfh@google.com> | 2015-01-22 13:14:29 +0000 |
|---|---|---|
| committer | Alexander Kornienko <alexfh@google.com> | 2015-01-22 13:14:29 +0000 |
| commit | bd895915becb576c68dd4b969eb5d2c00170d084 (patch) | |
| tree | b147ff3694cefa9e4f1e6d80b7094e7bd3c54c47 /modularize/ModuleAssistant.cpp | |
| parent | 9536e14715795438f12a2c9ea330030483f7c9b0 (diff) | |
Replace size call with empty call where appripriate in clang/tools/extra
This patch is the result of applying fixes of the ContainerSizeEmpty Clang-Tidy
checker which was committed recently.
http://reviews.llvm.org/D7085
Patch by Gábor Horváth!
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@226817 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'modularize/ModuleAssistant.cpp')
| -rw-r--r-- | modularize/ModuleAssistant.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modularize/ModuleAssistant.cpp b/modularize/ModuleAssistant.cpp index a109f586..3d2b9941 100644 --- a/modularize/ModuleAssistant.cpp +++ b/modularize/ModuleAssistant.cpp @@ -68,7 +68,7 @@ Module::Module() {} // Destructor. Module::~Module() { // Free submodules. - while (SubModules.size()) { + while (!SubModules.empty()) { Module *last = SubModules.back(); SubModules.pop_back(); delete last; |
