fix compiler warnings with py3 and msvc

This commit is contained in:
wmayer
2018-04-16 18:24:53 +02:00
parent 75c2f9ddbf
commit 5ff6945577
41 changed files with 35 additions and 20 deletions

View File

@@ -83,12 +83,12 @@
#include <boost/filesystem/exception.hpp>
#include "InventorAll.h"
#include "Qt4All.h"
// Python
#include <Python.h>
#include "InventorAll.h"
#include "Qt4All.h"
#elif defined(FC_OS_WIN32)
#include <windows.h>
#endif //_PreComp_

View File

@@ -24,10 +24,9 @@
#ifndef GUI_VIEWPROVIDER_DOCUMENTOBJECT_H
#define GUI_VIEWPROVIDER_DOCUMENTOBJECT_H
#include <Inventor/SoType.h>
#include "ViewProvider.h"
#include <App/DocumentObject.h>
#include <Inventor/SoType.h>
class SoMaterial;
class SoDrawStyle;

View File

@@ -24,8 +24,8 @@
#ifndef GUI_VIEWPROVIDER_GEOMETRYOBJECT_H
#define GUI_VIEWPROVIDER_GEOMETRYOBJECT_H
#include <Inventor/lists/SoPickedPointList.h>
#include "ViewProviderDragger.h"
#include <Inventor/lists/SoPickedPointList.h>
class SoPickedPointList;
class SoSwitch;

View File

@@ -13,6 +13,7 @@
#include "PreCompiled.h"
#ifndef _PreComp_
# include <Standard_math.hxx>
# include <Python.h>
# include <Inventor/system/inttypes.h>
#endif

View File

@@ -24,6 +24,7 @@
#include "PreCompiled.h"
#ifndef _PreComp_
# include <sstream>
# include <Python.h>
# include <QString>
# include <QDir>
# include <QFileInfo>
@@ -611,7 +612,7 @@ void CmdPartCompJoinFeatures::languageChange()
Gui::ActionGroup* pcAction = qobject_cast<Gui::ActionGroup*>(_pcAction);
QList<QAction*> a = pcAction->actions();
Gui::Command* joinConnect = rcCmdMgr.getCommandByName("Part_JoinConnect");
if (joinConnect) {
QAction* cmd0 = a[0];
@@ -635,7 +636,7 @@ void CmdPartCompJoinFeatures::languageChange()
cmd2->setToolTip(QApplication::translate("Part_JoinFeatures", joinCutout->getToolTipText()));
cmd2->setStatusTip(QApplication::translate("Part_JoinFeatures", joinCutout->getStatusTip()));
}
#endif
#endif
}
bool CmdPartCompJoinFeatures::isActive(void)

View File

@@ -36,6 +36,7 @@
# include <QFutureWatcher>
# include <QtConcurrentMap>
# include <boost/bind.hpp>
# include <Python.h>
# include <Inventor/nodes/SoBaseColor.h>
# include <Inventor/nodes/SoCoordinate3.h>
# include <Inventor/nodes/SoDrawStyle.h>

View File

@@ -35,6 +35,7 @@
# include <ShapeExtend_Explorer.hxx>
# include <TopTools_HSequenceOfShape.hxx>
# include <QMessageBox>
# include <Python.h>
# include <Inventor/system/inttypes.h>
#endif

View File

@@ -45,6 +45,7 @@
# include <QTimer>
# include <boost/signal.hpp>
# include <boost/bind.hpp>
# include <Python.h>
# include <Inventor/actions/SoSearchAction.h>
# include <Inventor/details/SoLineDetail.h>
#endif

View File

@@ -30,6 +30,7 @@
#include <GC_MakeArcOfCircle.hxx>
#include <Geom_Circle.hxx>
#include <Geom_TrimmedCurve.hxx>
#include <Python.h>
#include <Inventor/SoPickedPoint.h>
#include <Inventor/events/SoMouseButtonEvent.h>
#endif

View File

@@ -34,6 +34,7 @@
# include <TopoDS_Edge.hxx>
# include <ShapeExtend_Explorer.hxx>
# include <TopTools_HSequenceOfShape.hxx>
# include <Python.h>
# include <Inventor/system/inttypes.h>
# include <Precision.hxx>
#endif

View File

@@ -23,6 +23,7 @@
#include "PreCompiled.h"
#include <Python.h>
#include <QMessageBox>
#include "ViewProvider.h"
#include "DlgSettings3DViewPartImp.h"

View File

@@ -30,6 +30,7 @@
# include <TopExp_Explorer.hxx>
# include <boost/bind.hpp>
# include <cfloat>
# include <Python.h>
# include <Inventor/system/inttypes.h>
#endif

View File

@@ -34,6 +34,7 @@
# endif
# include <float.h>
# include <algorithm>
# include <Python.h>
# include <Inventor/SoPickedPoint.h>
# include <Inventor/SoPrimitiveVertex.h>
# include <Inventor/actions/SoCallbackAction.h>

View File

@@ -30,6 +30,7 @@
#include <float.h>
#include <algorithm>
#include <map>
#include <Python.h>
#include <Inventor/SoPickedPoint.h>
#include <Inventor/SoPrimitiveVertex.h>
#include <Inventor/actions/SoCallbackAction.h>

View File

@@ -34,6 +34,7 @@
# endif
# include <float.h>
# include <algorithm>
# include <Python.h>
# include <Inventor/SoPickedPoint.h>
# include <Inventor/SoPrimitiveVertex.h>
# include <Inventor/actions/SoCallbackAction.h>

View File

@@ -27,6 +27,7 @@
# include <QTextEdit>
# include <QTextStream>
# include <QTreeWidget>
# include <Python.h>
#endif
#include <Standard_Version.hxx>

View File

@@ -29,6 +29,7 @@
#include <sstream>
#include <Python.h>
#include <TopoDS_Shape.hxx>
#include <TopoDS_Vertex.hxx>

View File

@@ -34,6 +34,7 @@
# include <TopTools_IndexedMapOfShape.hxx>
# include <QMessageBox>
# include <QSet>
# include <Python.h>
# include <Inventor/SoPickedPoint.h>
# include <Inventor/actions/SoRayPickAction.h>
# include <Inventor/actions/SoSearchAction.h>

View File

@@ -25,6 +25,7 @@
#ifndef _PreComp_
# include <Standard_math.hxx>
# include <Python.h>
# include <Inventor/nodes/SoBaseColor.h>
# include <Inventor/nodes/SoDepthBuffer.h>
# include <Inventor/nodes/SoDrawStyle.h>

View File

@@ -27,7 +27,6 @@
#endif
#include "ViewProviderBox.h"
#include <Base/Parameter.h>
using namespace PartGui;

View File

@@ -27,7 +27,6 @@
#endif
#include "ViewProviderCircleParametric.h"
#include <Base/Parameter.h>
using namespace PartGui;

View File

@@ -28,9 +28,9 @@
# include <TopTools_IndexedMapOfShape.hxx>
#endif
#include "ViewProviderCompound.h"
#include <Gui/Application.h>
#include <Mod/Part/App/FeatureCompound.h>
#include "ViewProviderCompound.h"
using namespace PartGui;

View File

@@ -27,7 +27,6 @@
#endif
#include "ViewProviderConeParametric.h"
#include <Base/Parameter.h>
using namespace PartGui;

View File

@@ -29,6 +29,7 @@
# include <TColgp_Array1OfPnt.hxx>
# include <TopoDS.hxx>
# include <TopExp_Explorer.hxx>
# include <Python.h>
# include <Inventor/nodes/SoComplexity.h>
# include <Inventor/nodes/SoCoordinate3.h>
# include <Inventor/nodes/SoDrawStyle.h>

View File

@@ -27,7 +27,6 @@
#endif
#include "ViewProviderCylinderParametric.h"
#include <Base/Parameter.h>
using namespace PartGui;

View File

@@ -27,7 +27,6 @@
#endif
#include "ViewProviderEllipseParametric.h"
#include <Base/Parameter.h>
using namespace PartGui;

View File

@@ -68,7 +68,7 @@
# include <TShort_Array1OfShortReal.hxx>
# include <TShort_HArray1OfShortReal.hxx>
# include <Precision.hxx>
# include <Python.h>
# include <Inventor/SoPickedPoint.h>
# include <Inventor/details/SoFaceDetail.h>
# include <Inventor/details/SoLineDetail.h>

View File

@@ -24,6 +24,7 @@
#include "PreCompiled.h"
#ifndef _PreComp_
# include <Python.h>
#endif
#include "ViewProviderHelixParametric.h"

View File

@@ -27,7 +27,6 @@
#endif
#include "ViewProviderLineParametric.h"
#include <Base/Parameter.h>
using namespace PartGui;

View File

@@ -27,6 +27,7 @@
# include <QAction>
# include <QMenu>
# include <QTimer>
# include <Python.h>
# include <Standard_math.hxx>
# include <TopExp.hxx>
# include <TopTools_IndexedMapOfShape.hxx>

View File

@@ -27,7 +27,6 @@
#endif
#include "ViewProviderPointParametric.h"
#include <Base/Parameter.h>
using namespace PartGui;

View File

@@ -27,7 +27,6 @@
#endif
#include "ViewProviderPrism.h"
#include <Base/Parameter.h>
using namespace PartGui;
using namespace std;

View File

@@ -25,6 +25,7 @@
#include <Standard_math.hxx>
#ifndef _PreComp_
# include <Python.h>
# include <Inventor/nodes/SoSeparator.h>
#endif
#include <Gui/ViewProviderBuilder.h>

View File

@@ -24,6 +24,7 @@
#include "PreCompiled.h"
#ifndef _PreComp_
# include <Python.h>
# include <Poly_Polygon3D.hxx>
# include <BRepBndLib.hxx>
# include <BRepMesh_IncrementalMesh.hxx>

View File

@@ -27,7 +27,6 @@
#endif
#include "ViewProviderRegularPolygon.h"
#include <Base/Parameter.h>
using namespace PartGui;
using namespace std;

View File

@@ -39,6 +39,7 @@
# include <TopoDS_Shape.hxx>
# include <TopoDS_Shell.hxx>
# include <TopExp_Explorer.hxx>
# include <Python.h>
# include <Inventor/nodes/SoCoordinate3.h>
# include <Inventor/nodes/SoSeparator.h>
# include <Inventor/nodes/SoSwitch.h>

View File

@@ -27,7 +27,6 @@
#endif
#include "ViewProviderTorusParametric.h"
#include <Base/Parameter.h>
using namespace PartGui;

View File

@@ -24,6 +24,7 @@
#include "PreCompiled.h"
#ifndef _PreComp_
# include <Python.h>
# include <Inventor/SbVec3f.h>
# include <Inventor/nodes/SoSeparator.h>
# include <Inventor/nodes/SoTransform.h>

View File

@@ -26,6 +26,7 @@
# include <algorithm>
# include <QFileInfo>
# include <QInputDialog>
# include <Python.h>
# include <Inventor/events/SoMouseButtonEvent.h>
#endif

View File

@@ -24,6 +24,7 @@
#include "PreCompiled.h"
#ifndef _PreComp_
# include <Python.h>
# include <Inventor/nodes/SoCamera.h>
# include <Inventor/nodes/SoCoordinate3.h>
# include <Inventor/nodes/SoDrawStyle.h>

View File

@@ -39,6 +39,7 @@
#include <Geom_BSplineCurve.hxx>
#include <TopExp_Explorer.hxx>
#include <TopoDS.hxx>
#include <Python.h>
#include <Inventor/events/SoMouseButtonEvent.h>
#endif