Commit cbb499d5 authored by Emmanuel Promayon's avatar Emmanuel Promayon

UPDATED modernize now using non-deprecated header

parent aaac2a89
......@@ -36,7 +36,7 @@
#include <QCoreApplication>
// C++ includes
#include <stdlib.h>
#include <cstdlib>
#include <vector>
......
......@@ -24,13 +24,12 @@
****************************************************************************/
// include the needed files
#include <cstring>
#include <fstream>
#include <lml/Force.h>
#include <lml/Loads.h>
#include <lml/Translation.h>
#include <lml/Force.h>
#include <string>
#include <string.h>
#include <ostream>
#include <fstream>
void testActivation(std::string imlFile, double dt, std::string outcsv = "") {
// read the loads
......
......@@ -23,9 +23,9 @@
* $CAMITK_LICENCE_END$
****************************************************************************/
#include <cstring>
#include <iostream>
#include <string>
#include <string.h>
#include <sys/stat.h>
using namespace std;
......
......@@ -25,7 +25,7 @@
#include "Translation.h"
#include "TranslationUnit.h"
#include <math.h>
#include <cmath>
Translation::Translation() {
typeString = "Translation";
......
......@@ -27,9 +27,9 @@
#ifndef TOOLS_ATOMITERATOR_H
#define TOOLS_ATOMITERATOR_H
#include <string.h>
#include <PhysicalModel.h>
#include <Load.h>
#include <PhysicalModel.h>
#include <cstring>
/**
*
* @ingroup group_cepmodeling_libraries_mml
......
......@@ -28,7 +28,7 @@
extern "C" {
#include <time.h> //
#include <ctime> //
#include <sys/timeb.h> // ftime (chrono)
// #include <time.h> // gettimeofday (chrono)
#if !defined(_WIN32) || defined(__MINGW32__)
......
......@@ -23,8 +23,8 @@
* $CAMITK_LICENCE_END$
****************************************************************************/
#include <cmath>
#include <iostream>
#include <math.h>
// Stopping criteria includes
#include "Criterion.h"
......
......@@ -29,7 +29,7 @@
#include "Tools.h"
#include "AtomIterator.h"
#include <math.h>
#include <cmath>
// -------------------- constructor --------------------
MonitorDistanceX::MonitorDistanceX(mml::Monitor* m, MonitoringManager* monitoringManager): Monitor(m, monitoringManager, SCALARSET) {}
......
......@@ -29,7 +29,7 @@
#include "Tools.h"
#include "AtomIterator.h"
#include <math.h>
#include <cmath>
// -------------------- constructor --------------------
MonitorDistanceY::MonitorDistanceY(mml::Monitor* m, MonitoringManager* monitoringManager): Monitor(m, monitoringManager, SCALARSET) {}
......
......@@ -26,9 +26,9 @@
#include "MonitorDistanceZ.h"
// Monitor includes
#include "Tools.h"
#include "AtomIterator.h"
#include "math.h"
#include "Tools.h"
#include <cmath>
// -------------------- constructor --------------------
MonitorDistanceZ::MonitorDistanceZ(mml::Monitor* m, MonitoringManager* monitoringManager): Monitor(m, monitoringManager, SCALARSET) {}
......
......@@ -38,7 +38,7 @@
// PML includes
#include <pml/CellProperties.h>
#include <string.h>
#include <cstring>
// -------------------- constructor --------------------
......
......@@ -27,7 +27,7 @@
#define TOOLS_TOOLS_H
#include <MonitoringModel.hxx>
#include "math.h"
#include <cmath>
/// compute euclidian distance
double distance(double pos[3], double pos2[3]);
......
......@@ -27,7 +27,7 @@
#include "Cell.h"
#include "PhysicalModel.h"
#include <math.h>
#include <cmath>
// pmlschema includes
#include <Cell.hxx>
......
......@@ -37,7 +37,7 @@
#include <QPushButton>
// -- stl stuff
#include <float.h>
#include <cfloat>
// -- VTK stuff
#include <vtkUnsignedCharArray.h>
......
......@@ -31,12 +31,12 @@
#include <QtVariantProperty>
// -- QT stuff
#include <QWidget>
#include <QMetaEnum>
#include <QPushButton>
#include <QVBoxLayout>
#include <QScrollArea>
#include <QMetaEnum>
#include <signal.h>
#include <QVBoxLayout>
#include <QWidget>
#include <csignal>
namespace camitk {
......
......@@ -66,8 +66,8 @@
#include <QCheckBox>
#include <QLineEdit>
#include <limits.h>
#include <float.h>
#include <cfloat>
#include <climits>
#if defined(Q_CC_MSVC)
# pragma warning(disable: 4786) /* MS VS 6: truncating debug info after 255 characters */
......
......@@ -24,8 +24,8 @@
****************************************************************************/
#include "ShakerLib.h"
#include <stdlib.h> // for rand
#include <math.h> // for sqrt
#include <cmath> // for sqrt
#include <cstdlib> // for rand
// --------------- randomDisplacement -------------------
void ShakerLib::randomDisplacement(float* pos, unsigned int nrOfPoints, double maxDisplacement) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment