]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #1861: Find empty loop body
authorvsv <vitaly.smetannikov@opencascade.com>
Wed, 9 Nov 2016 15:53:23 +0000 (18:53 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Wed, 9 Nov 2016 15:53:23 +0000 (18:53 +0300)
cpplint.cfg
src/Model/Model_Application.cpp
src/SHAPERGUI/SHAPERGUI_NestedButton.cpp
src/SHAPERGUI/SHAPERGUI_NestedButton.h

index cc3f964d72514e910c98fc026956f0cc5fbd96e2..e4c091ed6364352a7164f2bfd70805657bfcf8b3 100644 (file)
@@ -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
index 45e4203f94ebc103d22fcac9b8453d3efc2fa0f1..87b6894d3a75915d4be505f40e1227c7246a6242 100644 (file)
@@ -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;
 }
 
index 02753ac05c74282118c423a6887f7413904b49cb..bf93cc66662592bc808ef640d7c9f8d400837119 100644 (file)
@@ -1,3 +1,5 @@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
 /*
  * SHAPERGUI_NestedButton.cpp
  *
index 2b55ee3764f6721c6b618c323eff1ffc26375c5f..3665ac95d0defe767c17cfcb6d081654b5cb4634 100644 (file)
@@ -1,3 +1,5 @@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
 /*
  * SHAPERGUI_NestedButton.h
  *