113 lines
3.4 KiB
Diff
113 lines
3.4 KiB
Diff
From 9a41845a417189776741297c50a3827ce292bc4f Mon Sep 17 00:00:00 2001
|
|
From: Uwe <donovaly@users.noreply.github.com>
|
|
Date: Sun, 3 Jul 2022 22:51:16 +0200
|
|
Subject: [PATCH] [Part] OCCError.h: remove unneeded includes
|
|
|
|
- also sort includes
|
|
---
|
|
src/Mod/Part/App/OCCError.h | 36 +++----------------------
|
|
src/Mod/Part/App/OffsetCurvePyImp.cpp | 12 ++++-----
|
|
src/Mod/Part/App/OffsetSurfacePyImp.cpp | 10 +++----
|
|
3 files changed, 12 insertions(+), 46 deletions(-)
|
|
|
|
--- a/src/Mod/Part/App/OCCError.h
|
|
+++ b/src/Mod/Part/App/OCCError.h
|
|
@@ -23,36 +23,8 @@
|
|
#ifndef _OCCError_h_
|
|
#define _OCCError_h_
|
|
|
|
-# include <Standard_Version.hxx>
|
|
# include <Standard_Failure.hxx>
|
|
-# include <Standard_AbortiveTransaction.hxx>
|
|
-# include <Standard_ConstructionError.hxx>
|
|
-# if OCC_VERSION_HEX >= 0x060500
|
|
-# include <Standard_DefineException.hxx>
|
|
-# endif
|
|
-# include <Standard_DimensionError.hxx>
|
|
-# include <Standard_DimensionMismatch.hxx>
|
|
-# include <Standard_DivideByZero.hxx>
|
|
-# include <Standard_DomainError.hxx>
|
|
-# include <Standard_ImmutableObject.hxx>
|
|
-# include <Standard_LicenseError.hxx>
|
|
-# include <Standard_LicenseNotFound.hxx>
|
|
-# include <Standard_MultiplyDefined.hxx>
|
|
-# include <Standard_NegativeValue.hxx>
|
|
-# include <Standard_NoMoreObject.hxx>
|
|
-# include <Standard_NoSuchObject.hxx>
|
|
-# include <Standard_NotImplemented.hxx>
|
|
-# include <Standard_NullObject.hxx>
|
|
-# include <Standard_NullValue.hxx>
|
|
-# include <Standard_NumericError.hxx>
|
|
-# include <Standard_OutOfMemory.hxx>
|
|
-# include <Standard_OutOfRange.hxx>
|
|
-# include <Standard_Overflow.hxx>
|
|
-# include <Standard_ProgramError.hxx>
|
|
-# include <Standard_RangeError.hxx>
|
|
-# include <Standard_TooManyUsers.hxx>
|
|
-# include <Standard_TypeMismatch.hxx>
|
|
-# include <Standard_Underflow.hxx>
|
|
+# include <Standard_Version.hxx>
|
|
|
|
#include <Mod/Part/PartGlobal.h>
|
|
#include <Base/Console.h>
|
|
@@ -88,4 +60,3 @@ PartExport extern PyObject* PartExceptio
|
|
|
|
#define PY_CATCH_OCC _PY_CATCH_OCC(return(NULL))
|
|
#endif // _OCCError_h_
|
|
-
|
|
--- a/src/Mod/Part/App/OffsetCurvePyImp.cpp
|
|
+++ b/src/Mod/Part/App/OffsetCurvePyImp.cpp
|
|
@@ -20,20 +20,20 @@
|
|
* *
|
|
***************************************************************************/
|
|
|
|
-
|
|
#include "PreCompiled.h"
|
|
#ifndef _PreComp_
|
|
# include <Geom_OffsetCurve.hxx>
|
|
#endif
|
|
|
|
-#include "OCCError.h"
|
|
-#include "Geometry.h"
|
|
+#include <Base/GeometryPyCXX.h>
|
|
+#include <Base/Vector3D.h>
|
|
+#include <Base/VectorPy.h>
|
|
+
|
|
#include "OffsetCurvePy.h"
|
|
#include "OffsetCurvePy.cpp"
|
|
+#include "Geometry.h"
|
|
+#include "OCCError.h"
|
|
|
|
-#include <Base/GeometryPyCXX.h>
|
|
-#include <Base/VectorPy.h>
|
|
-#include <Base/Vector3D.h>
|
|
|
|
using namespace Part;
|
|
|
|
--- a/src/Mod/Part/App/OffsetSurfacePyImp.cpp
|
|
+++ b/src/Mod/Part/App/OffsetSurfacePyImp.cpp
|
|
@@ -20,20 +20,16 @@
|
|
* *
|
|
***************************************************************************/
|
|
|
|
-
|
|
#include "PreCompiled.h"
|
|
#ifndef _PreComp_
|
|
# include <Geom_OffsetSurface.hxx>
|
|
# include <memory>
|
|
#endif
|
|
|
|
-#include <Base/VectorPy.h>
|
|
-#include <Base/Vector3D.h>
|
|
-
|
|
#include "OCCError.h"
|
|
-#include "Geometry.h"
|
|
-#include <Mod/Part/App/OffsetSurfacePy.h>
|
|
-#include <Mod/Part/App/OffsetSurfacePy.cpp>
|
|
+#include "OffsetSurfacePy.h"
|
|
+#include "OffsetSurfacePy.cpp"
|
|
+
|
|
|
|
using namespace Part;
|
|
|