From: spo Date: Fri, 24 Jul 2015 05:31:59 +0000 (+0300) Subject: Spell-checking X-Git-Tag: V_1.4.0_beta4~427 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=35b830d561822bfa66c686af78d75ce431fdf707;p=modules%2Fshaper.git Spell-checking --- diff --git a/src/Model/Model_Data.cpp b/src/Model/Model_Data.cpp index 78d6fca5c..0fa5d9203 100644 --- a/src/Model/Model_Data.cpp +++ b/src/Model/Model_Data.cpp @@ -402,9 +402,9 @@ void Model_Data::referencesToObjects( FeaturePtr aMyFeature = std::dynamic_pointer_cast(myObject); std::map >::iterator anAttr = myAttrs.begin(); - std::list aReferenced; // not inside of cycle to avoid excess memory menagement + std::list 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; diff --git a/src/Model/Model_Update.cpp b/src/Model/Model_Update.cpp index 676884c93..a1a840381 100644 --- a/src/Model/Model_Update.cpp +++ b/src/Model/Model_Update.cpp @@ -452,7 +452,7 @@ void Model_Update::updateArguments(FeaturePtr theFeature) { std::shared_ptr aSel = std::dynamic_pointer_cast(*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())) { diff --git a/src/ModelAPI/ModelAPI_CompositeFeature.h b/src/ModelAPI/ModelAPI_CompositeFeature.h index 193a73af8..0814141b7 100644 --- a/src/ModelAPI/ModelAPI_CompositeFeature.h +++ b/src/ModelAPI/ModelAPI_CompositeFeature.h @@ -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 diff --git a/src/ModelAPI/ModelAPI_Tools.h b/src/ModelAPI/ModelAPI_Tools.h index b99b9f87e..f14029a0c 100644 --- a/src/ModelAPI/ModelAPI_Tools.h +++ b/src/ModelAPI/ModelAPI_Tools.h @@ -8,12 +8,14 @@ #define ModelAPI_Tools_HeaderFile #include "ModelAPI.h" -#include -#include + +#include #include #include +#include +#include + #include -#include #include @@ -46,12 +48,12 @@ MODELAPI_EXPORT void findRandomColor(std::vector& 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 */ diff --git a/src/ParametersPlugin/ParametersPlugin_EvalListener.cpp b/src/ParametersPlugin/ParametersPlugin_EvalListener.cpp index 9d86a0fc7..13dfc182a 100644 --- a/src/ParametersPlugin/ParametersPlugin_EvalListener.cpp +++ b/src/ParametersPlugin/ParametersPlugin_EvalListener.cpp @@ -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(aMessage->object()); if (!aResultParameter.get())