Fix various (doxy) typos and whitespace issues

Found via `codespell -q 3 -L aci,ake,aline,alle,alledges,alocation,als,ang,anid,ba,beginn,behaviour,bloaded,byteorder,calculater,cancelled,cancelling,cas,cascade,centimetre,childs,colour,colours,commen,currenty,dof,doubleclick,dum,eiter,elemente,feld,freez,hist,iff,indicies,initialisation,initialise,initialised,initialises,initialisiert,ist,kilometre,lod,mantatory,methode,metres,millimetre,modell,nd,noe,normale,normaly,nto,numer,oder,orgin,orginx,orginy,ot,pard,pres,programm,que,recurrance,rougly,seperator,serie,sinc,strack,substraction,te,thist,thru,tread,uint,unter,vertexes,wallthickness,whitespaces -S ./.git,*.po,*.ts,./ChangeLog.txt,./src/3rdParty,./src/Mod/Assembly/App/opendcm,./src/CXX,./src/zipios++,./src/Base/swig*,./src/Mod/Robot/App/kdl_cp,./src/Mod/Import/App/SCL,./src/WindowsInstaller,./src/Doc/FreeCAD.uml`
This commit is contained in:
luz.paz
2019-09-27 12:01:48 -04:00
committed by Bernd Hahnebach
parent 9cbcb97a10
commit fb32601746
46 changed files with 73 additions and 83 deletions

View File

@@ -130,13 +130,13 @@
using namespace App;
using namespace std;
using namespace boost;
using namespace boost::program_options;
// scriptings (scripts are build in but can be overridden by command line option)
#include <App/InitScript.h>
#include <App/TestScript.h>
#include <App/CMakeScript.h>
using namespace boost::program_options;
// scriptings (scripts are built-in but can be overridden by command line option)
#include <App/InitScript.h>
#include <App/TestScript.h>
#include <App/CMakeScript.h>
#ifdef _MSC_VER // New handler for Microsoft Visual C++ compiler
# pragma warning( disable : 4535 )
@@ -2241,7 +2241,7 @@ void Application::LoadParameters(void)
#if defined(_MSC_VER)
// fix weird error while linking boost (all versions of VC)
// VS2010: http://forum.freecadweb.org/viewtopic.php?f=4&t=1886&p=12553&hilit=boost%3A%3Afilesystem%3A%3Aget#p12553
// VS2010: https://forum.freecadweb.org/viewtopic.php?f=4&t=1886&p=12553&hilit=boost%3A%3Afilesystem%3A%3Aget#p12553
namespace boost { namespace program_options { std::string arg="arg"; } }
#if (defined (BOOST_VERSION) && (BOOST_VERSION >= 104100))
namespace boost { namespace program_options {
@@ -2931,7 +2931,7 @@ std::string Application::FindHomePath(const char* sCall)
binPath += L"bin";
SetDllDirectoryW(binPath.c_str());
// http://stackoverflow.com/questions/5625884/conversion-of-stdwstring-to-qstring-throws-linker-error
// https://stackoverflow.com/questions/5625884/conversion-of-stdwstring-to-qstring-throws-linker-error
#ifdef _MSC_VER
QString str = QString::fromUtf16(reinterpret_cast<const ushort *>(homePath.c_str()));
#else

View File

@@ -193,7 +193,7 @@ struct DocumentP
static std::random_device _RD;
static std::mt19937 _RGEN(_RD());
static std::uniform_int_distribution<> _RDIST(0,5000);
// Set some random offset to reduce likelihood of ID collison when
// Set some random offset to reduce likelihood of ID collision when
// copying shape from other document. It is probably better to randomize
// on each object ID.
lastObjectId = _RDIST(_RGEN);
@@ -4129,7 +4129,7 @@ DocumentObject* Document::moveObject(DocumentObject* obj, bool recursive)
if(objs.empty())
return 0;
// Some object may delete its children if deleted, so we collect the IDs
// or all depdending objects for safety reason.
// or all depending objects for safety reason.
std::vector<int> ids;
ids.reserve(deps.size());
for(auto o : deps)

View File

@@ -361,7 +361,7 @@ std::vector<App::DocumentObject*> DocumentObject::getInListRecursive(void) const
#else
// The original algorithm is highly inefficient in some special case.
// Considering an object is linked by every other objects. After exculding this
// Considering an object is linked by every other objects. After excluding this
// object, there is another object linked by every other of the remaining
// objects, and so on. The vector 'result' above will be of magnitude n^2.
// Even if we replace the vector with a set, we still need to visit that amount
@@ -1197,4 +1197,3 @@ void DocumentObject::onPropertyStatusChanged(const Property &prop, unsigned long
if(!Document::isAnyRestoring() && getNameInDocument() && getDocument())
getDocument()->signalChangePropertyEditor(*getDocument(),prop);
}

View File

@@ -123,7 +123,7 @@ public:
/**
* The function indicates whether the object type allows to define a view provider type
* different than the standard type. The default implementation returns false.
* The function can be overriden by Python feature to return true where the type can be
* The function can be overridden by Python feature to return true where the type can be
* retrieved from its proxy object.
* \sa getViewProviderNameOverride()
*/
@@ -623,7 +623,7 @@ private:
// accessed by App::Document to record and restore the correct view provider type
std::string _pcViewProviderName;
// unique identifier (ammong a document) of this object.
// unique identifier (among a document) of this object.
long _Id;
private:

View File

@@ -761,7 +761,7 @@ void LinkBaseExtension::update(App::DocumentObject *parent, const Property *prop
else {
auto objs = getElementListValue();
// preseve element properties in ourself
// preserve element properties in ourself
std::vector<Base::Placement> placements;
placements.reserve(objs.size());
std::vector<Base::Vector3d> scales;

View File

@@ -375,8 +375,8 @@ public:
Py::Object getPyValue(bool pathValue=false, bool *isPseudoProperty=0) const;
// Setter; is const because it does not alter the object state,
// but does have a aide effect.
// Setter: is const because it does not alter the object state,
// but does have an aiding effect.
void setValue(const App::any & value) const;

View File

@@ -93,7 +93,7 @@ App::Plane *Origin::getPlane( const char *role ) const {
return static_cast<App::Plane *> (feat);
} else {
std::stringstream err;
err << "Origin \"" << getFullName () << "\" comtains bad Plane object for role \""
err << "Origin \"" << getFullName () << "\" contains bad Plane object for role \""
<< role << '"';
throw Base::RuntimeError ( err.str().c_str () );
}

View File

@@ -244,9 +244,9 @@ void PropertyContainer::Save (Base::Writer &writer) const
writer.Stream() << writer.ind() << "<Properties Count=\"" << Map.size()
<< "\" TransientCount=\"" << transients.size() << "\">" << endl;
// First store transient properties to persisit their status value. We use
// First store transient properties to persist their status value. We use
// a new element named "_Property" so that the save file can be opened by
// older version FC.
// older versions of FC.
writer.incInd();
for(auto prop : transients) {
writer.Stream() << writer.ind() << "<_Property name=\"" << prop->getName()
@@ -635,4 +635,3 @@ void PropertyContainer::Restore(Base::Reader &reader)
\endcode
*/

View File

@@ -2428,14 +2428,14 @@ bool PropertyLinkSubList::adjustLink(const std::set<App::DocumentObject*> &inLis
// DocInfo
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
// Key on aboslute path.
// Key on absolute path.
// Because of possible symbolic links, multiple entry may refer to the same
// file. We use QFileInfo::canonicalPath to resolve that.
typedef std::map<QString,DocInfoPtr> DocInfoMap;
DocInfoMap _DocInfoMap;
class App::DocInfo :
public std::enable_shared_from_this<App::DocInfo>
public std::enable_shared_from_this<App::DocInfo>
{
public:
typedef boost::signals2::scoped_connection Connection;
@@ -3099,7 +3099,7 @@ void PropertyXLink::Save (Base::Writer &writer) const {
std::string _path;
if(exporting) {
// Here means we are exporting the owner but not exporting the
// linked object. Try to use aboslute file path for easy transition
// linked object. Try to use absolute file path for easy transition
// into document at different directory
if(docInfo)
_path = docInfo->filePath();