##// END OF EJS Templates
Fix compilation with GCC 6...
Marc Mutz -
r2872:9c63b5bda170
parent child
Show More
@@ -208,9 +208,9 QList<RealList> MainWidget::generateTestData(int columnCount, int rowCount, QStr
208 QList <qreal> newColumn;
208 QList <qreal> newColumn;
209 for (int i(0); i < rowCount; i++) {
209 for (int i(0); i < rowCount; i++) {
210 if (dataCharacteristics == "Sin") {
210 if (dataCharacteristics == "Sin") {
211 newColumn.append(abs(sin(3.14159265358979 / 50 * i) * 100));
211 newColumn.append(std::abs(sin(3.14159265358979 / 50 * i) * 100));
212 } else if (dataCharacteristics == "Sin + random") {
212 } else if (dataCharacteristics == "Sin + random") {
213 newColumn.append(abs(sin(3.14159265358979 / 50 * i) * 100) + (rand() % 5));
213 newColumn.append(std::abs(sin(3.14159265358979 / 50 * i) * 100) + (rand() % 5));
214 } else if (dataCharacteristics == "Random") {
214 } else if (dataCharacteristics == "Random") {
215 newColumn.append(rand() % 10 + (qreal) rand() / (qreal) RAND_MAX);
215 newColumn.append(rand() % 10 + (qreal) rand() / (qreal) RAND_MAX);
216 } else if (dataCharacteristics == "Linear") {
216 } else if (dataCharacteristics == "Linear") {
General Comments 0
You need to be logged in to leave comments. Login now