diff -ru kpl-4.1/lib/kplitem.cpp kpl-4.1-new/lib/kplitem.cpp --- kpl-4.1/lib/kplitem.cpp 2015-06-20 18:16:49.000000000 +0200 +++ kpl-4.1-new/lib/kplitem.cpp 2016-06-24 11:37:37.000000000 +0200 @@ -30,6 +30,7 @@ #include #include "kplitem.h" +const double KplItem::Deg2rad = M_PI / 180; double KplItem::m_dashOffset = 0; KplItem::KplItem(double relSize) : m_relSize(relSize) diff -ru kpl-4.1/lib/kplitem.h kpl-4.1-new/lib/kplitem.h --- kpl-4.1/lib/kplitem.h 2015-06-20 18:16:49.000000000 +0200 +++ kpl-4.1-new/lib/kplitem.h 2016-06-24 11:38:40.000000000 +0200 @@ -112,7 +112,7 @@ DotLine2 ///< Dotted line with short spaces. }; /** Factor for converting from degrees to radians. */ - static const double Deg2rad = M_PI / 180; + static const double Deg2rad; /** * Constructor. Initializes corresponding to arguments. * @param relSize relative size of text and symbols. diff -ru kpl-4.1/lib/psgraph.cpp kpl-4.1-new/lib/psgraph.cpp --- kpl-4.1/lib/psgraph.cpp 2015-06-20 18:16:49.000000000 +0200 +++ kpl-4.1-new/lib/psgraph.cpp 2016-06-24 12:24:59.000000000 +0200 @@ -30,6 +30,8 @@ #include "splineitem.h" #include "textitem.h" +const double PSGraph::pts = 72 / 2.54; + PSGraph::PSGraph(QTextStream* stream, const QList& list, const QSizeF& size, bool landscape, bool eps) : m_logX(false), m_logY(false), m_symbol(KplItem::OpenCircle), m_x0(0), m_y0(0), diff -ru kpl-4.1/lib/psgraph.h kpl-4.1-new/lib/psgraph.h --- kpl-4.1/lib/psgraph.h 2015-06-20 18:16:49.000000000 +0200 +++ kpl-4.1-new/lib/psgraph.h 2016-06-24 12:24:17.000000000 +0200 @@ -118,7 +118,7 @@ */ double setRelSize(double m_relSize); /** Points per cm. */ - static const double pts = 72 / 2.54; + static const double pts; protected: /** diff -ru kpl-4.1/src/kpldoc.cpp kpl-4.1-new/src/kpldoc.cpp --- kpl-4.1/src/kpldoc.cpp 2015-06-20 18:17:59.000000000 +0200 +++ kpl-4.1-new/src/kpldoc.cpp 2016-06-24 12:27:09.000000000 +0200 @@ -64,6 +64,8 @@ #include "textitem.h" #include "threeddlg.h" +const double KplDoc::Snap = 0.05; + /** * Applies changes to item and forces redrawing. * @param item pointer to plot item. diff -ru kpl-4.1/src/kpldoc.h kpl-4.1-new/src/kpldoc.h --- kpl-4.1/src/kpldoc.h 2015-06-20 18:18:00.000000000 +0200 +++ kpl-4.1-new/src/kpldoc.h 2016-06-24 12:26:46.000000000 +0200 @@ -543,7 +543,7 @@ } bool defSel, m_fitNonLinear; int nyLeg, m_fitMaxIterations; - static const double Snap = 0.05; + static const double Snap; KplScene* m_scene; QWidget* app; FileType m_fileType;