Salome HOME
Spell-checking
authorspo <sergey.pokhodenko@opencascade.com>
Fri, 24 Jul 2015 05:31:59 +0000 (08:31 +0300)
committerspo <sergey.pokhodenko@opencascade.com>
Wed, 5 Aug 2015 14:59:38 +0000 (17:59 +0300)
src/Model/Model_Data.cpp
src/Model/Model_Update.cpp
src/ModelAPI/ModelAPI_CompositeFeature.h
src/ModelAPI/ModelAPI_Tools.h
src/ParametersPlugin/ParametersPlugin_EvalListener.cpp

index 78d6fca5ce57cb45117d8e272baaf2b8de9860c6..0fa5d92038723d111c9c6c365724ac0d73ffa07f 100644 (file)
@@ -402,9 +402,9 @@ void Model_Data::referencesToObjects(
   FeaturePtr aMyFeature = std::dynamic_pointer_cast<ModelAPI_Feature>(myObject);
 
   std::map<std::string, std::shared_ptr<ModelAPI_Attribute> >::iterator anAttr = myAttrs.begin();
-  std::list<ObjectPtr> aReferenced; // not inside of cycle to avoid excess memory menagement
+  std::list<ObjectPtr> aReferenced; // not inside of cycle to avoid excess memory management
   for(; anAttr != myAttrs.end(); anAttr++) {
-    // skip not-case attributres, that really may refer to anything not-used (issue 671)
+    // skip not-case attributes, that really may refer to anything not-used (issue 671)
     if (aMyFeature.get() && !aValidators->isCase(aMyFeature, anAttr->second->id()))
       continue;
 
index 676884c93be70872719a9f17a77ef452176a5a10..a1a840381d6cf3e96d2b7207204cee61b72a182e 100644 (file)
@@ -452,7 +452,7 @@ void Model_Update::updateArguments(FeaturePtr theFeature) {
     std::shared_ptr<ModelAPI_AttributeSelection> aSel =
       std::dynamic_pointer_cast<ModelAPI_AttributeSelection>(*aRefsIter);
     ObjectPtr aContext = aSel->context();
-    // update argument onlt if the referenced object is changed
+    // update argument only if the referenced object is changed
     if (aContext.get() && !aContext->isDisabled() && 
       (myJustUpdated.find(aContext) != myJustUpdated.end() ||
       aContext->data()->updateID() > theFeature->data()->updateID())) {
index 193a73af87a547ef072cf5c5216c09fee0c80a73..0814141b71830ecc0b49527a1ab9b2c45cfefda0 100644 (file)
@@ -33,7 +33,7 @@ public:
   /// Returns the sub-feature unique identifier in this composite feature by zero-base index
   virtual int subFeatureId(const int theIndex) const = 0;
 
-  /// Returns true if feature or reuslt belong to this composite feature as subs
+  /// Returns true if feature or result belong to this composite feature as subs
   virtual bool isSub(ObjectPtr theObject) const = 0;
 
   /// This method to inform that sub-feature is removed and must be removed from the internal data
index b99b9f87ed738955135c523b752f5d88b3422985..f14029a0cf46e7df1d3384a2f40c41ce2eecc048 100644 (file)
@@ -8,12 +8,14 @@
 #define ModelAPI_Tools_HeaderFile
 
 #include "ModelAPI.h"
-#include <ModelAPI_Result.h>
-#include <ModelAPI_ResultParameter.h>
+
+#include <ModelAPI_CompositeFeature.h>
 #include <ModelAPI_Document.h>
 #include <ModelAPI_Feature.h>
+#include <ModelAPI_Result.h>
+#include <ModelAPI_ResultParameter.h>
+
 #include <GeomAPI_Shape.h>
-#include <ModelAPI_CompositeFeature.h>
 
 #include <vector>
 
@@ -46,12 +48,12 @@ MODELAPI_EXPORT void findRandomColor(std::vector<int>& theValues);
  * Searches for Part result that contains the reference to the given document.
  * \param theMain document that contains the searched feature
  * \param theSub document that is searched, the resulting feature references to it
- * \returns numm if not found
+ * \returns null if not found
  */
 MODELAPI_EXPORT ResultPtr findPartResult(const DocumentPtr& theMain, const DocumentPtr& theSub);
 
 /*!
- * Returns the cpomposite feature - parent of this feature.
+ * Returns the composite feature - parent of this feature.
  * \param theFeature the sub-element of composite
  * \returns null if it is not sub-element of composite
  */
index 9d86a0fc736899bb4b5336c43400e682b55a5547..13dfc182a7d00a108b82df06cf04446b034dbb84 100644 (file)
@@ -281,7 +281,7 @@ void ParametersPlugin_EvalListener::processObjectRenamedEvent(
   if (!aMessage.get() || aMessage->oldName().empty() || aMessage->newName().empty())
     return;
 
-  // check if the renamed object is a result perameter
+  // check if the renamed object is a result parameter
   ResultParameterPtr aResultParameter =
       std::dynamic_pointer_cast<ModelAPI_ResultParameter>(aMessage->object());
   if (!aResultParameter.get())