All: modernize C++11

* replace deprecated headers
This commit is contained in:
wmayer
2022-03-23 22:44:18 +01:00
parent 8d618d44c0
commit 97330443a2
93 changed files with 126 additions and 136 deletions
+3 -3
View File
@@ -3177,8 +3177,8 @@ void Application::ExtractUserPath()
}
#if defined (FC_OS_LINUX) || defined(FC_OS_CYGWIN) || defined(FC_OS_BSD)
#include <stdio.h>
#include <stdlib.h>
#include <cstdio>
#include <cstdlib>
#include <sys/param.h>
std::string Application::FindHomePath(const char* sCall)
@@ -3235,7 +3235,7 @@ std::string Application::FindHomePath(const char* sCall)
#elif defined(FC_OS_MACOSX)
#include <mach-o/dyld.h>
#include <string>
#include <stdlib.h>
#include <cstdlib>
#include <sys/param.h>
std::string Application::FindHomePath(const char* call)
+1 -1
View File
@@ -29,7 +29,7 @@
#include <Base/Persistence.h>
#ifdef __GNUC__
# include <stdint.h>
# include <cstdint>
#endif
+1 -1
View File
@@ -41,7 +41,7 @@
#ifndef _PreComp_
# ifdef _MSC_VER
# include <time.h>
# include <ctime>
# include <crtdbg.h>
# endif
#endif
+1 -1
View File
@@ -35,7 +35,7 @@
#include <fcntl.h>
#include <cstdio>
#include <cassert>
#include <time.h>
#include <ctime>
#include <cfloat>
#ifdef FC_OS_WIN32
#define _USE_MATH_DEFINES
+1 -1
View File
@@ -41,7 +41,7 @@
#if defined(Q_OS_UNIX)
# include <sys/types.h>
# include <time.h>
# include <ctime>
# include <unistd.h>
#endif
+1 -1
View File
@@ -24,7 +24,7 @@
#include "PreCompiled.h"
#ifndef _PreComp_
# include <assert.h>
# include <cassert>
# include <QFile>
# include <QTextStream>
#endif
+1 -1
View File
@@ -23,7 +23,7 @@
#include "PreCompiled.h"
#ifndef _PreComp_
# include <float.h>
# include <cfloat>
# ifdef FC_OS_WIN32
# include <windows.h>
# endif
+5 -8
View File
@@ -45,13 +45,13 @@
#ifdef _PreComp_
// standard
#include <stdio.h>
#include <assert.h>
#include <cstdio>
#include <cassert>
#include <fcntl.h>
#include <ctype.h>
#include <cctype>
#include <typeinfo>
#include <float.h>
#include <limits.h>
#include <cfloat>
#include <climits>
#ifdef FC_OS_WIN32
#include <Windows.h>
@@ -59,9 +59,6 @@
#include <shellapi.h>
#endif
// null-terminated byte string
#include <cctype>
// streams
#include <iostream>
#include <iomanip>
+1 -1
View File
@@ -22,7 +22,7 @@
#include "PreCompiled.h"
#ifndef _PreComp_
#include <assert.h>
#include <cassert>
#include <Inventor/SbRotation.h>
#include <Inventor/actions/SoGLRenderAction.h>
+1 -1
View File
@@ -22,7 +22,7 @@
#include "PreCompiled.h"
#ifndef _PreComp_
#include <assert.h>
#include <cassert>
#include <limits>
#include <QApplication>
#include <QGridLayout>
+1 -1
View File
@@ -23,7 +23,7 @@
#include "PreCompiled.h"
#ifndef _PreComp_
# include <float.h>
# include <cfloat>
# ifdef FC_OS_WIN32
# include <windows.h>
# endif
+1 -1
View File
@@ -35,7 +35,7 @@
# include <config.h>
#endif // HAVE_CONFIG_H
#include <stdio.h>
#include <cstdio>
#include <sstream>
// FreeCAD Base header
+1 -1
View File
@@ -40,7 +40,7 @@
# include <config.h>
#endif // HAVE_CONFIG_H
#include <stdio.h>
#include <cstdio>
#include <sstream>
#include <iostream>
+1 -1
View File
@@ -24,7 +24,7 @@
#if defined(FC_OS_WIN32)
#include <Windows.h>
#include <stdint.h>
#include <cstdint>
#endif
#include <openssl/hmac.h>
+2 -2
View File
@@ -44,8 +44,8 @@
// standard
#include <iostream>
#include <sstream>
#include <stdio.h>
#include <assert.h>
#include <cstdio>
#include <cassert>
#include <string>
#include <map>
#include <vector>
+2 -2
View File
@@ -44,8 +44,8 @@
// standard
#include <iostream>
#include <sstream>
#include <stdio.h>
#include <assert.h>
#include <cstdio>
#include <cassert>
#include <string>
#include <map>
#include <vector>
+1 -1
View File
@@ -25,7 +25,7 @@
#include "PreCompiled.h"
#ifndef _PreComp_
# include <math.h> //OvG: Required for log10
# include <cmath> //OvG: Required for log10
# include <TopoDS.hxx>
# include <BRepGProp_Face.hxx>
# include <gp_Vec.hxx>
+2 -4
View File
@@ -49,8 +49,8 @@
// standard
#include <iostream>
#include <sstream>
#include <stdio.h>
#include <assert.h>
#include <cstdio>
#include <cassert>
#include <string>
#include <map>
#include <vector>
@@ -60,8 +60,6 @@
#include <memory>
#include <cmath>
#include <math.h>
#include <algorithm>
#include <stdexcept>
+1 -1
View File
@@ -48,7 +48,7 @@
// standard
#include <iostream>
#include <assert.h>
#include <cassert>
#include <cmath>
#include <math.h>
@@ -44,7 +44,7 @@
# include <Inventor/nodes/SoMaterialBinding.h>
# include <Inventor/nodes/SoScale.h>
# include <math.h>
# include <cmath>
#endif
#include <Gui/Command.h>
@@ -49,7 +49,7 @@
# include <boost_bind_bind.hpp>
# include <math.h>
# include <cmath>
#endif
#include "ViewProviderFemPostFunction.h"
+2 -2
View File
@@ -43,8 +43,8 @@
// standard
#include <iostream>
#include <sstream>
#include <stdio.h>
#include <assert.h>
#include <cstdio>
#include <cassert>
#include <string>
#include <map>
#include <vector>
+1 -1
View File
@@ -45,7 +45,7 @@
#ifdef _PreComp_
// standard
#include <assert.h>
#include <cassert>
#include <cmath>
#include <iostream>
#include <sstream>
+2 -2
View File
@@ -53,8 +53,8 @@
#include <list>
#include <iostream>
#include <sstream>
#include <stdio.h>
#include <assert.h>
#include <cstdio>
#include <cassert>
#include <io.h>
#include <fcntl.h>
#include <vector>
+1 -1
View File
@@ -53,7 +53,7 @@
// standard
#include <list>
#include <iostream>
#include <assert.h>
#include <cassert>
// STL
#include <vector>
+2 -2
View File
@@ -31,8 +31,8 @@
// standard
#include <stdio.h>
#include <assert.h>
#include <cstdio>
#include <cassert>
// STL
#include <algorithm>
+2 -2
View File
@@ -49,8 +49,8 @@
// standard
#include <iostream>
#include <sstream>
#include <stdio.h>
#include <assert.h>
#include <cstdio>
#include <cassert>
#include <string>
#include <map>
#include <vector>
+3 -3
View File
@@ -47,10 +47,10 @@
#ifdef _PreComp_
// standard
#include <stdio.h>
#include <assert.h>
#include <cstdio>
#include <cassert>
#include <cmath>
#include <float.h>
#include <cfloat>
#include <fcntl.h>
#include <ios>
+2 -2
View File
@@ -52,8 +52,8 @@
# include <gts.h>
#endif
// standard
#include <stdio.h>
#include <assert.h>
#include <cstdio>
#include <cassert>
// STL
#include <algorithm>
+1 -1
View File
@@ -24,7 +24,7 @@
#include "PreCompiled.h"
#include "MeshFlatteningNurbs.h"
#include <iostream>
#include "math.h"
#include <cmath>
namespace nurbs{
+2 -2
View File
@@ -49,8 +49,8 @@
// standard
#include <iostream>
#include <sstream>
#include <stdio.h>
#include <assert.h>
#include <cstdio>
#include <cassert>
#include <string>
#include <map>
#include <vector>
+1 -1
View File
@@ -53,7 +53,7 @@
// standard
#include <iostream>
#include <assert.h>
#include <cassert>
#include <cmath>
// STL
+2 -2
View File
@@ -52,9 +52,9 @@
#include <list>
#include <iostream>
#include <sstream>
#include <stdio.h>
#include <cstdio>
#include <fcntl.h>
#include <assert.h>
#include <cassert>
#include <array>
#include <vector>
+1 -1
View File
@@ -24,7 +24,7 @@
#include "PreCompiled.h"
#ifndef _PreComp_
# include <assert.h>
# include <cassert>
#endif
/// Here the FreeCAD includes sorted by Base,App,Gui......
-4
View File
@@ -57,12 +57,8 @@
// standard
#include <iostream>
//#include <stdio.h>
#include <cassert>
#include <cfloat>
//#include <io.h>
//#include <fcntl.h>
//#include <ctype.h>
# include <cmath>
#include <sstream>
+1 -1
View File
@@ -32,7 +32,7 @@
# else
# include <GL/gl.h>
# endif
# include <float.h>
# include <cfloat>
# include <algorithm>
# include <Inventor/SoPickedPoint.h>
# include <Inventor/SoPrimitiveVertex.h>
+1 -1
View File
@@ -29,7 +29,7 @@
#endif
#ifndef _PreComp_
# include <float.h>
# include <cfloat>
# include <algorithm>
# include <map>
# include <Inventor/SoPickedPoint.h>
+1 -1
View File
@@ -32,7 +32,7 @@
# else
# include <GL/gl.h>
# endif
# include <float.h>
# include <cfloat>
# include <algorithm>
# include <Inventor/SoPickedPoint.h>
# include <Inventor/SoPrimitiveVertex.h>
+1 -1
View File
@@ -32,7 +32,7 @@
# else
# include <GL/gl.h>
# endif
# include <float.h>
# include <cfloat>
# include <algorithm>
# include <Inventor/actions/SoCallbackAction.h>
# include <Inventor/actions/SoGetBoundingBoxAction.h>
+3 -4
View File
@@ -49,8 +49,8 @@
// standard
#include <iostream>
#include <sstream>
#include <stdio.h>
#include <assert.h>
#include <cstdio>
#include <cassert>
#include <string>
#include <map>
#include <vector>
@@ -58,8 +58,7 @@
#include <bitset>
#include <cstring>
# include <math.h>
#include <cmath>
// QT
#include <QObject>
+1 -1
View File
@@ -52,7 +52,7 @@
// standard
#include <algorithm>
#include <assert.h>
#include <cassert>
#include <cmath>
#include <iostream>
#include <sstream>
+2 -2
View File
@@ -42,8 +42,8 @@
// standard
#include <iostream>
#include <sstream>
#include <stdio.h>
#include <assert.h>
#include <cstdio>
#include <cassert>
#include <string>
#include <map>
#include <vector>
+1 -1
View File
@@ -48,7 +48,7 @@
// standard
#include <iostream>
#include <assert.h>
#include <cassert>
#include <cmath>
// STL
+4 -4
View File
@@ -43,8 +43,8 @@
#ifdef _PreComp_
// standard
#include <stdio.h>
#include <assert.h>
#include <cstdio>
#include <cassert>
// STL
#include <algorithm>
@@ -59,9 +59,9 @@
#include <string>
#include <vector>
#include <bitset>
#include <float.h>
#include <cfloat>
#include <cmath>
#include <stdlib.h>
#include <cstdlib>
#endif //_PreComp_
+2 -2
View File
@@ -44,8 +44,8 @@
#ifdef _PreComp_
// standard
#include <stdio.h>
#include <assert.h>
#include <cstdio>
#include <cassert>
// STL
#include <algorithm>
+2 -2
View File
@@ -38,8 +38,8 @@
#ifdef _PreComp_
// standard
#include <stdio.h>
#include <assert.h>
#include <cstdio>
#include <cassert>
// STL
+2 -2
View File
@@ -43,8 +43,8 @@
#ifdef _PreComp_
// standard
#include <stdio.h>
#include <assert.h>
#include <cstdio>
#include <cassert>
// STL
#include <algorithm>
+2 -2
View File
@@ -57,8 +57,8 @@
// standard
#include <iostream>
#include <sstream>
#include <stdio.h>
#include <assert.h>
#include <cstdio>
#include <cassert>
#include <string>
#include <map>
#include <vector>
+1 -1
View File
@@ -50,7 +50,7 @@
#ifdef _PreComp_
// standard
#include <iostream>
#include <assert.h>
#include <cassert>
#include <cmath>
// STL
+2 -2
View File
@@ -41,8 +41,8 @@
// standard
#include <iostream>
#include <sstream>
#include <stdio.h>
#include <assert.h>
#include <cstdio>
#include <cassert>
#include <string>
#include <map>
#include <vector>
+1 -1
View File
@@ -36,7 +36,7 @@
#include "kdl_cp/chainjnttojacsolver.hpp"
#include "kdl_cp/chainiksolverpos_nr.hpp"
#include <stdio.h>
#include <cstdio>
#include <iostream>
#include <Base/Console.h>
+1 -1
View File
@@ -30,7 +30,7 @@
#include "kdl_cp/chain.hpp"
#include "kdl_cp/frames_io.hpp"
#include <stdio.h>
#include <cstdio>
#include <iostream>
#include <Base/Console.h>
+1 -1
View File
@@ -50,7 +50,7 @@
// standard
#include <iostream>
#include <assert.h>
#include <cassert>
#include <cmath>
// STL
+1 -1
View File
@@ -27,7 +27,7 @@
#endif // #ifndef _PreComp_
#include <assert.h>
#include <cassert>
#include <Base/Vector3D.h>
#include <Base/Exception.h>
+2 -2
View File
@@ -44,8 +44,8 @@
// standard
#include <iostream>
#include <sstream>
#include <stdio.h>
#include <assert.h>
#include <cstdio>
#include <cassert>
#include <string>
#include <map>
#include <memory>
@@ -24,7 +24,7 @@
#include "PreCompiled.h"
#ifndef _PreComp_
# include <assert.h>
# include <cassert>
#endif
/// Here the FreeCAD includes sorted by Base,App,Gui......
+1 -1
View File
@@ -29,7 +29,7 @@
# include <QInputDialog>
# include <QMessageBox>
# include <QString>
# include <stdlib.h>
# include <cstdlib>
# include <qdebug.h>
# include <GC_MakeEllipse.hxx>
# include <boost/math/special_functions/fpclassify.hpp>
+1 -1
View File
@@ -52,7 +52,7 @@
#include <cassert>
#include <cmath>
#include <stdlib.h>
#include <cstdlib>
// STL
#include <vector>
+2 -2
View File
@@ -47,8 +47,8 @@
// standard
#include <iostream>
#include <assert.h>
#include <math.h>
#include <cassert>
#include <cmath>
// STL
#include <vector>
+1 -1
View File
@@ -27,7 +27,7 @@
#include "Utils.h"
#include <sstream>
#include <stdlib.h>
#include <cstdlib>
#include <boost/regex.hpp>
#include <Base/Exception.h>
#include "Sheet.h"
+1 -1
View File
@@ -29,7 +29,7 @@
# include <QTextStream>
#endif
#include <time.h>
#include <ctime>
#if defined(FC_OS_WIN32)
#include <sys/timeb.h>
#endif
+2 -2
View File
@@ -49,8 +49,8 @@
// standard
#include <iostream>
#include <assert.h>
#include <math.h>
#include <cassert>
#include <cmath>
// STL
#include <vector>
+1 -1
View File
@@ -62,7 +62,7 @@
#include <QtGui/QKeyEvent>
#include <QtGui/QShowEvent>
#include <QtGui/QMouseEvent>
#include <math.h>
#include <cmath>
#include <QScreen>
#include <Gui/FileDialog.h>
+1 -1
View File
@@ -37,7 +37,7 @@
#ifdef _PreComp_
// standard
#include <iostream>
#include <assert.h>
#include <cassert>
#include <cmath>
// STL
+1 -1
View File
@@ -27,7 +27,7 @@
# include <cstring>
# include <cstdlib>
#include <cmath>
#include <float.h>
#include <cfloat>
#include <string>
# include <exception>
+2 -2
View File
@@ -51,8 +51,8 @@
#include <fstream>
#include <iostream>
#include <sstream>
#include <stdio.h>
#include <assert.h>
#include <cstdio>
#include <cassert>
#include <string>
#include <map>
#include <vector>
@@ -24,7 +24,7 @@
#include "PreCompiled.h"
#ifndef _PreComp_
# include <assert.h>
# include <cassert>
#endif
/// Here the FreeCAD includes sorted by Base,App,Gui......
@@ -24,7 +24,7 @@
#include "PreCompiled.h"
#ifndef _PreComp_
# include <assert.h>
# include <cassert>
#endif
/// Here the FreeCAD includes sorted by Base,App,Gui......
@@ -24,7 +24,7 @@
#include "PreCompiled.h"
#ifndef _PreComp_
# include <assert.h>
# include <cassert>
#endif
/// Here the FreeCAD includes sorted by Base,App,Gui......
@@ -24,7 +24,7 @@
#include "PreCompiled.h"
#ifndef _PreComp_
# include <assert.h>
# include <cassert>
#endif
/// Here the FreeCAD includes sorted by Base,App,Gui......
+1 -1
View File
@@ -44,7 +44,7 @@
#endif // #ifndef _PreComp_
#include <math.h>
#include <cmath>
#include "MDIViewPage.h"
+1 -1
View File
@@ -22,7 +22,7 @@
#include "PreCompiled.h"
#ifndef _PreComp_
#include <assert.h>
#include <cassert>
#include <QGraphicsScene>
#include <QGraphicsSceneHoverEvent>
#include <QMouseEvent>
+1 -1
View File
@@ -22,7 +22,7 @@
#include "PreCompiled.h"
#ifndef _PreComp_
#include <assert.h>
#include <cassert>
#include <QGraphicsScene>
#include <QGraphicsSceneHoverEvent>
#include <QMouseEvent>
+1 -1
View File
@@ -22,7 +22,7 @@
#include "PreCompiled.h"
#ifndef _PreComp_
#include <assert.h>
#include <cassert>
#include <QGraphicsScene>
#include <QGraphicsSceneHoverEvent>
#include <QMouseEvent>
+1 -1
View File
@@ -22,7 +22,7 @@
#include "PreCompiled.h"
#ifndef _PreComp_
#include <assert.h>
#include <cassert>
#include <QGraphicsScene>
#include <QGraphicsSceneHoverEvent>
#include <QMouseEvent>
+1 -1
View File
@@ -22,7 +22,7 @@
#include "PreCompiled.h"
#ifndef _PreComp_
#include <assert.h>
#include <cassert>
#include <QGraphicsScene>
#include <QGraphicsSceneHoverEvent>
#include <QMouseEvent>
+1 -1
View File
@@ -22,7 +22,7 @@
#include "PreCompiled.h"
#ifndef _PreComp_
#include <assert.h>
#include <cassert>
#include <QGraphicsScene>
#include <QGraphicsSceneHoverEvent>
#include <QMouseEvent>
+1 -1
View File
@@ -22,7 +22,7 @@
#include "PreCompiled.h"
#ifndef _PreComp_
#include <assert.h>
#include <cassert>
#include <QGraphicsScene>
#include <QMenu>
#include <QMouseEvent>
+1 -1
View File
@@ -22,7 +22,7 @@
#include "PreCompiled.h"
#ifndef _PreComp_
#include <assert.h>
#include <cassert>
#include <QGraphicsScene>
#include <QGraphicsSceneHoverEvent>
#include <QMouseEvent>
+1 -1
View File
@@ -22,7 +22,7 @@
#include "PreCompiled.h"
#ifndef _PreComp_
#include <assert.h>
#include <cassert>
#include <QGraphicsScene>
#include <QGraphicsSceneHoverEvent>
#include <QMouseEvent>
+1 -1
View File
@@ -22,7 +22,7 @@
#include "PreCompiled.h"
#ifndef _PreComp_
#include <assert.h>
#include <cassert>
//#include <QGraphicsScene>
//#include <QGraphicsSceneHoverEvent>
//#include <QMouseEvent>
+1 -1
View File
@@ -22,7 +22,7 @@
#include "PreCompiled.h"
#ifndef _PreComp_
#include <assert.h>
#include <cassert>
#include <QGraphicsScene>
#include <QMenu>
#include <QMouseEvent>
+1 -1
View File
@@ -22,7 +22,7 @@
#include "PreCompiled.h"
#ifndef _PreComp_
#include <assert.h>
#include <cassert>
#include <QGraphicsScene>
#include <QMouseEvent>
#include <QPainter>
+1 -1
View File
@@ -37,7 +37,7 @@
#include <QPaintDevice>
#include <QSvgGenerator>
#include <QVector2D>
#include <math.h>
#include <cmath>
#endif
#include <App/Application.h>
+1 -1
View File
@@ -22,7 +22,7 @@
#include "PreCompiled.h"
#ifndef _PreComp_
#include <assert.h>
#include <cassert>
#include <QPainter>
#include <QPainterPath>
#include <QStyleOptionGraphicsItem>
+1 -1
View File
@@ -22,7 +22,7 @@
#include "PreCompiled.h"
#ifndef _PreComp_
#include <assert.h>
#include <cassert>
#include <QGraphicsScene>
#include <QGraphicsSceneHoverEvent>
#include <QMouseEvent>
+1 -1
View File
@@ -46,7 +46,7 @@
#include <QDialog>
# include <math.h>
# include <cmath>
#endif
#include <App/Application.h>
+1 -1
View File
@@ -22,7 +22,7 @@
#include "PreCompiled.h"
#ifndef _PreComp_
#include <assert.h>
#include <cassert>
#include <QGraphicsScene>
#include <QGraphicsSceneHoverEvent>
#include <QMouseEvent>
+1 -1
View File
@@ -36,7 +36,7 @@
# include <QPaintDevice>
# include <QSvgGenerator>
# include <math.h>
# include <cmath>
#endif
#include <App/Application.h>
+1 -1
View File
@@ -22,7 +22,7 @@
#include "PreCompiled.h"
#ifndef _PreComp_
#include <assert.h>
#include <cassert>
#include <QGraphicsScene>
#include <QGraphicsView>
#include <QGraphicsSceneHoverEvent>
+1 -1
View File
@@ -27,7 +27,7 @@
#include <QImage>
#include <QByteArray>
#include <QBuffer>
#include <stdlib.h>
#include <cstdlib>
MTextEdit::MTextEdit(QWidget *parent) : QTextEdit(parent) {
+2 -2
View File
@@ -43,8 +43,8 @@
#endif
// standard
#include <stdio.h>
#include <assert.h>
#include <cstdio>
#include <cassert>
// STL
#include <algorithm>
+1 -1
View File
@@ -38,7 +38,7 @@
// standard
#include <iostream>
#include <assert.h>
#include <cassert>
#include <cmath>
// STL