--- a/src/miscallenous.h Thu Jan 04 19:40:52 2018 +0200 +++ b/src/miscallenous.h Thu Jan 04 19:44:26 2018 +0200 @@ -27,19 +27,19 @@ class QAction; // Simplifies the given fraction. -void Simplify (int& numer, int& denom); +void Simplify(int& numer, int& denom); -using ApplyToMatrixFunction = std::function<void (int, double&)>; -using ApplyToMatrixConstFunction = std::function<void (int, double)>; +using ApplyToMatrixFunction = std::function<void(int, double&)>; +using ApplyToMatrixConstFunction = std::function<void(int, double)>; -void RoundToDecimals (double& a, int decimals); -void ApplyToMatrix (Matrix& a, ApplyToMatrixFunction func); -void ApplyToMatrix (const Matrix& a, ApplyToMatrixConstFunction func); +void RoundToDecimals(double& a, int decimals); +void ApplyToMatrix(Matrix& a, ApplyToMatrixFunction func); +void ApplyToMatrix(const Matrix& a, ApplyToMatrixConstFunction func); -double GetCoordinateOf (const Vertex& a, Axis ax); -QString MakePrettyFileSize (qint64 size); +double GetCoordinateOf(const Vertex& a, Axis ax); +QString MakePrettyFileSize(qint64 size); -QString Join (QList<StringFormatArg> vals, QString delim = " "); +QString Join(QList<StringFormatArg> vals, QString delim = " "); // Grid stuff float gridCoordinateSnap(); @@ -55,7 +55,7 @@ NumValues }; -Vertex GetRotationPoint (const LDObjectList& objs); +Vertex GetRotationPoint(const LDObjectList& objs); void ConfigureRotationPoint(); // ============================================================================= @@ -74,5 +74,5 @@ Angle }; - double Snap (double value, const Grid::Config type); + double Snap(double value, const Grid::Config type); }