From: vsv Date: Wed, 9 Nov 2016 15:53:23 +0000 (+0300) Subject: Issue #1861: Find empty loop body X-Git-Tag: V_2.6.0~100 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2e45ba9930dd1166692aac7653b8a40e5a52836c;p=modules%2Fshaper.git Issue #1861: Find empty loop body --- 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 *