Index: cpp/frams/model/modelparts.cpp
===================================================================
--- cpp/frams/model/modelparts.cpp	(revision 844)
+++ cpp/frams/model/modelparts.cpp	(revision 899)
@@ -1,4 +1,4 @@
 // This file is a part of Framsticks SDK.  http://www.framsticks.com/
-// Copyright (C) 1999-2017  Maciej Komosinski and Szymon Ulatowski.
+// Copyright (C) 1999-2019  Maciej Komosinski and Szymon Ulatowski.
 // See LICENSE.txt for details.
 
@@ -74,20 +74,20 @@
 }
 
-void PartBase::setInfo(const SString& name, const SString& value)
+void PartBase::setInfo(const SString &name, const SString &value)
 {
 	strSetField(info, name, value);
 }
 
-void PartBase::setInfo(const SString& name, int value)
+void PartBase::setInfo(const SString &name, int value)
 {
 	setInfo(name, SString::valueOf(value));
 }
 
-void PartBase::setInfo(const SString& name, double value)
+void PartBase::setInfo(const SString &name, double value)
 {
 	setInfo(name, SString::valueOf(value));
 }
 
-SString PartBase::getInfo(const SString& name)
+SString PartBase::getInfo(const SString &name)
 {
 	return strGetField(info, name);
@@ -134,9 +134,9 @@
 }
 
-void NeuroClass::setGenActive(const char* genactive_classes[])
-{
-	for (const char** n = genactive_classes; *n; n++)
-	{
-		NeuroClass* cls = Neuro::getClass(*n);
+void NeuroClass::setGenActive(const char *genactive_classes[])
+{
+	for (const char **n = genactive_classes; *n; n++)
+	{
+		NeuroClass *cls = Neuro::getClass(*n);
 		if (cls) cls->genactive = 1;
 	}
@@ -223,5 +223,5 @@
 }
 
-SString** Neuro::inputInfo(int i)
+SString **Neuro::inputInfo(int i)
 {
 	if (i >= getInputCount()) return 0;
@@ -229,5 +229,5 @@
 }
 
-void Neuro::setInputInfo(int i, const SString& name, const SString &value)
+void Neuro::setInputInfo(int i, const SString &name, const SString &value)
 {
 	SString **s = inputInfo(i);
@@ -237,10 +237,10 @@
 }
 
-void Neuro::setInputInfo(int i, const SString& name, int value)
+void Neuro::setInputInfo(int i, const SString &name, int value)
 {
 	setInputInfo(i, name, SString::valueOf(value));
 }
 
-void Neuro::setInputInfo(int i, const SString& name, double value)
+void Neuro::setInputInfo(int i, const SString &name, double value)
 {
 	setInputInfo(i, name, SString::valueOf(value));
@@ -255,5 +255,5 @@
 }
 
-SString Neuro::getInputInfo(int i, const SString& name)
+SString Neuro::getInputInfo(int i, const SString &name)
 {
 	SString **s = inputInfo(i);
@@ -263,5 +263,5 @@
 }
 
-void Neuro::operator=(const Neuro& src)
+void Neuro::operator=(const Neuro &src)
 {
 	refno = src.refno;
@@ -294,20 +294,20 @@
 }
 
-NeuroClass* Neuro::getClass(int classindex)
+NeuroClass *Neuro::getClass(int classindex)
 {
 	return NeuroLibrary::staticlibrary.getClass(classindex);
 }
 
-NeuroClass* Neuro::getClass(const SString& classname)
+NeuroClass *Neuro::getClass(const SString &classname)
 {
 	return NeuroLibrary::staticlibrary.findClass(classname);
 }
 
-int Neuro::getClassIndex(const NeuroClass*nc)
-{
-	return NeuroLibrary::staticlibrary.classes.find((void*)nc);
-}
-
-NeuroClass* Neuro::getClass()
+int Neuro::getClassIndex(const NeuroClass *nc)
+{
+	return NeuroLibrary::staticlibrary.classes.find((void *)nc);
+}
+
+NeuroClass *Neuro::getClass()
 {
 	checkClass();
@@ -315,5 +315,5 @@
 }
 
-void Neuro::setClass(NeuroClass* cl)
+void Neuro::setClass(NeuroClass *cl)
 {
 	myclass = cl;
@@ -328,5 +328,5 @@
 }
 
-void Neuro::setDetails(const SString& details)
+void Neuro::setDetails(const SString &details)
 {
 	int colon = details.indexOf(':');
@@ -362,5 +362,5 @@
 }
 
-void Neuro::setClassName(const SString& clazz)
+void Neuro::setClassName(const SString &clazz)
 {
 	myclassname = clazz;
@@ -368,5 +368,5 @@
 }
 
-int Neuro::addInput(Neuro* child, double weight, const SString *info)
+int Neuro::addInput(Neuro *child, double weight, const SString *info)
 {
 	inputs += NInput(child, weight, (info && (info->len())) ? new SString(*info) : 0);
@@ -376,5 +376,5 @@
 }
 
-int Neuro::findInput(Neuro* child) const
+int Neuro::findInput(Neuro *child) const
 {
 	for (int i = 0; i < inputs.size(); i++)
@@ -383,5 +383,5 @@
 }
 
-Neuro* Neuro::getInput(int i, double &weight) const
+Neuro *Neuro::getInput(int i, double &weight) const
 {
 	if (i >= getInputCount()) return 0;
@@ -401,5 +401,5 @@
 }
 
-void Neuro::setInput(int i, Neuro* n)
+void Neuro::setInput(int i, Neuro *n)
 {
 	NInput &inp = inputs(i);
@@ -407,5 +407,5 @@
 }
 
-void Neuro::setInput(int i, Neuro* n, double w)
+void Neuro::setInput(int i, Neuro *n, double w)
 {
 	NInput &inp = inputs(i);
@@ -424,5 +424,5 @@
 }
 
-int Neuro::removeInput(Neuro* child)
+int Neuro::removeInput(Neuro *child)
 {
 	int i = findInput(child);
@@ -463,5 +463,5 @@
 }
 
-int Neuro::findInputs(SList& result, const char* classname, const Part* part, const Joint* joint) const
+int Neuro::findInputs(SList &result, const char *classname, const Part *part, const Joint *joint) const
 {
 	Neuro *nu;
@@ -476,10 +476,10 @@
 		if (classname)
 			if (nu->getClassName() != cn) continue;
-		result += (void*)nu;
+		result += (void *)nu;
 	}
 	return result.size() - n0;
 }
 
-int Neuro::findOutputs(SList& result, const char* classname, const Part* part, const Joint* joint) const
+int Neuro::findOutputs(SList &result, const char *classname, const Part *part, const Joint *joint) const
 { // not very efficient...
 	Neuro *nu, *inp;
@@ -498,6 +498,6 @@
 			if (inp == this)
 			{
-			result += (void*)nu;
-			break;
+				result += (void *)nu;
+				break;
 			}
 	}
@@ -576,5 +576,5 @@
 }
 
-void Part::operator=(const Part& src)
+void Part::operator=(const Part &src)
 {
 	p = src.p; o = src.o;
@@ -612,9 +612,9 @@
 	Pt3D x = p2 - p1;
 	Pt3D dir(x.y, x.z, x.x);
-	p = p1 + x*0.5;
+	p = p1 + x * 0.5;
 	rot.getAngles(x, dir);
 }
 
-Param& Part::getStaticParam()
+Param &Part::getStaticParam()
 {
 	static Param p(f0_part_paramtab, 0, "Part");
@@ -637,5 +637,5 @@
 }
 
-void Joint::operator=(const Joint& src)
+void Joint::operator=(const Joint &src)
 {
 	rot = src.rot;
@@ -652,5 +652,5 @@
 }
 
-void Joint::attachToParts(Part* p1, Part* p2)
+void Joint::attachToParts(Part *p1, Part *p2)
 {
 	part1 = p1;
@@ -695,5 +695,5 @@
 }
 
-Param& Joint::getStaticParam()
+Param &Joint::getStaticParam()
 {
 	static Param p(f0_joint_paramtab, 0, "Joint");
@@ -760,5 +760,5 @@
 };
 
-Param& Neuro::getStaticParam()
+Param &Neuro::getStaticParam()
 {
 	static Param p(f0_neuro_paramtab, 0, "NeuroDef");
