]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Meet coding style (fix lines longer than 100)
authorArtem Zhidkov <Artem.Zhidkov@opencascade.com>
Fri, 15 May 2020 12:05:02 +0000 (15:05 +0300)
committerArtem Zhidkov <Artem.Zhidkov@opencascade.com>
Fri, 15 May 2020 12:05:02 +0000 (15:05 +0300)
src/Model/Model_Objects.cpp
src/ModelAPI/ModelAPI_Events.h

index e1a2d99c245329b1ab01224f066ed86796f12f5f..d83240df3c9fba2e862dc9fe9a71e681a224ffae 100644 (file)
@@ -1886,7 +1886,7 @@ void Model_Objects::updateResults(FeaturePtr theFeature, std::set<FeaturePtr>& t
         if (aGroup->Get() == ModelAPI_ResultBody::group().c_str()) {
           aNewBody = createBody(theFeature->data(), aResIndex);
         } else if (aGroup->Get() == ModelAPI_ResultPart::group().c_str()) {
-          if (aResIndex <= (int)theFeature->results().size()) { // to avoid crash if previous execute
+          if (aResIndex <= (int)theFeature->results().size()) {// to avoid crash if previous execute
             // for index = 0 erases result
             std::shared_ptr<ModelAPI_ResultPart> aNewP = createPart(theFeature->data(), aResIndex);
             if (!aNewP->data()->isDeleted()) {
index 0547252dc1805f84529f2d1f6b2e12e6759c593f..c79ec94d007f30f3a42b8845a332cc5a5cec28b5 100644 (file)
@@ -85,9 +85,11 @@ MAYBE_UNUSED static const char * EVENT_PREVIEW_BLOCKED = "PreviewBlocked";
 /// To preview the current feature in the viewer (to compute the result)
 MAYBE_UNUSED static const char * EVENT_PREVIEW_REQUESTED = "PreviewRequested";
 /// To block automatic recomputation of any feature (by the GUI button press)
-MAYBE_UNUSED static const char * EVENT_AUTOMATIC_RECOMPUTATION_DISABLE = "DisableAutomaticRecomputation";
+MAYBE_UNUSED static const char * EVENT_AUTOMATIC_RECOMPUTATION_DISABLE
+                                                         = "DisableAutomaticRecomputation";
 /// To unblock block automatic recomputation (default state: the GUI button unpressed)
-MAYBE_UNUSED static const char * EVENT_AUTOMATIC_RECOMPUTATION_ENABLE = "EnableAutomaticRecomputation";
+MAYBE_UNUSED static const char * EVENT_AUTOMATIC_RECOMPUTATION_ENABLE
+                                                         = "EnableAutomaticRecomputation";
 
 /// Event ID that solver has conflicting constraints (comes with ModelAPI_SolverFailedMessage)
 MAYBE_UNUSED static const char * EVENT_SOLVER_FAILED = "SolverFailed";