From 2e45ba9930dd1166692aac7653b8a40e5a52836c Mon Sep 17 00:00:00 2001 From: vsv Date: Wed, 9 Nov 2016 18:53:23 +0300 Subject: [PATCH] Issue #1861: Find empty loop body --- cpplint.cfg | 3 ++- src/Model/Model_Application.cpp | 2 +- src/SHAPERGUI/SHAPERGUI_NestedButton.cpp | 2 ++ src/SHAPERGUI/SHAPERGUI_NestedButton.h | 2 ++ 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/cpplint.cfg b/cpplint.cfg index cc3f964d7..e4c091ed6 100644 --- a/cpplint.cfg +++ b/cpplint.cfg @@ -1,4 +1,5 @@ linelength=100 -filter=-whitespace,+whitespace/end_of_line,-readability,-build,-runtime +filter=-whitespace,+whitespace/empty_loop_body,-readability,-build,-runtime root=src #+whitespace/line_length +#+whitespace/end_of_line diff --git a/src/Model/Model_Application.cpp b/src/Model/Model_Application.cpp index 45e4203f9..87b6894d3 100644 --- a/src/Model/Model_Application.cpp +++ b/src/Model/Model_Application.cpp @@ -167,7 +167,7 @@ void Model_Application::removeUselessDocuments( int Model_Application::generateDocumentId() { int aResult = int(myDocs.size()); - for(; myDocs.find(aResult) != myDocs.end(); aResult++); // count until the result id is unique + for(; myDocs.find(aResult) != myDocs.end(); aResult++) {} // count until the result id is unique return aResult; } diff --git a/src/SHAPERGUI/SHAPERGUI_NestedButton.cpp b/src/SHAPERGUI/SHAPERGUI_NestedButton.cpp index 02753ac05..bf93cc666 100644 --- a/src/SHAPERGUI/SHAPERGUI_NestedButton.cpp +++ b/src/SHAPERGUI/SHAPERGUI_NestedButton.cpp @@ -1,3 +1,5 @@ +// Copyright (C) 2014-20xx CEA/DEN, EDF R&D + /* * SHAPERGUI_NestedButton.cpp * diff --git a/src/SHAPERGUI/SHAPERGUI_NestedButton.h b/src/SHAPERGUI/SHAPERGUI_NestedButton.h index 2b55ee376..3665ac95d 100644 --- a/src/SHAPERGUI/SHAPERGUI_NestedButton.h +++ b/src/SHAPERGUI/SHAPERGUI_NestedButton.h @@ -1,3 +1,5 @@ +// Copyright (C) 2014-20xx CEA/DEN, EDF R&D + /* * SHAPERGUI_NestedButton.h * -- 2.39.2