fixed eriks bug, must initialize const double values inside cpp not in h from gccc 4.4.6 onwards

This commit is contained in:
Dhanya Maliakal 2016-11-10 16:13:22 +01:00
parent cec2e5c6b4
commit 7d860cc7cd
2 changed files with 3 additions and 5 deletions

View File

@ -479,11 +479,8 @@ double XYRangeValues[4];
bool IsXYRange[4];
/** Default timer between plots*/
//#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 6)
//static constexpr double PLOT_TIMER_MS = 200;
//#else
static const double PLOT_TIMER_MS = 200;
//#endif
static const double PLOT_TIMER_MS;
/** Specific timer value between plots */
double timerValue;
/** every nth frame when to plot */

View File

@ -30,6 +30,7 @@ using namespace std;
//-------------------------------------------------------------------------------------------------------------------------------------------------
const double qDrawPlot::PLOT_TIMER_MS = 200;
qDrawPlot::qDrawPlot(QWidget *parent,multiSlsDetector*& detector):
QWidget(parent),myDet(detector),plot1D_hists(0){