Remove unnecessary check (duplicated)

before including the library, it is uselessly checked if the variable __QtAll__ and __InventorAll__ have been defined. The same check is performed again once the library is included
This commit is contained in:
Andrea
2025-03-10 21:52:48 +01:00
parent 5a1170c795
commit 078e315d8f
12 changed files with 3 additions and 42 deletions

View File

@@ -41,16 +41,12 @@
#include <boost/core/ignore_unused.hpp>
// Qt
#ifndef __QtAll__
#include <Gui/QtAll.h>
#endif
#include <QWidgetAction>
// all of Inventor
#ifndef __InventorAll__
#include <Gui/InventorAll.h>
#endif
#endif //_PreComp_

View File

@@ -58,9 +58,7 @@
#endif
// Qt Toolkit
#ifndef __QtAll__
#include <Gui/QtAll.h>
#endif
#endif //_PreComp_

View File

@@ -89,9 +89,7 @@
#endif
// Qt Toolkit
#ifndef __QtAll__
#include <Gui/QtAll.h>
#endif
#endif //_PreComp_

View File

@@ -53,18 +53,13 @@
#include <string>
#include <vector>
// OpenCasCade
// #include <Mod/Part/App/OpenCascadeAll.h>
// Qt Toolkit
#ifndef __QtAll__
#include <Gui/QtAll.h>
#endif
// Inventor includes OpenGL
#ifndef __InventorAll__
# include <Gui/InventorAll.h>
#endif
#endif //_PreComp_

View File

@@ -82,14 +82,10 @@
#include <Inventor/C/glue/gl.h>
// Qt Toolkit
#ifndef __QtAll__
#include <Gui/QtAll.h>
#endif
// Inventor includes OpenGL
#ifndef __InventorAll__
#include <Gui/InventorAll.h>
#endif
#endif //_PreComp_

View File

@@ -23,7 +23,7 @@
#include "PreCompiled.h"
#ifndef _PreComp_
#ifdef FC_OS_WIN32
#include <windows.h>
# include <windows.h>
#endif
#include <map>
@@ -35,9 +35,7 @@
#include <qstringlist.h>
#endif
#ifndef __InventorAll__
#include <Gui/InventorAll.h>
#endif
#include <App/DocumentObject.h>
#include <App/DocumentObjectGroup.h>

View File

@@ -52,14 +52,10 @@
#include <vector>
// Qt Toolkit
#ifndef __QtAll__
#include <Gui/QtAll.h>
#endif
// Inventor
#ifndef __InventorAll__
#include <Gui/InventorAll.h>
#endif
#elif defined(FC_OS_WIN32)
#ifndef NOMINMAX

View File

@@ -83,14 +83,10 @@
#include <Inventor/C/glue/gl.h>
// Qt Toolkit
#ifndef __QtAll__
# include <Gui/QtAll.h>
#endif
// Inventor includes OpenGL
#ifndef __InventorAll__
# include <Gui/InventorAll.h>
#endif
#endif //_PreComp_

View File

@@ -56,14 +56,10 @@
#include <TopTools_IndexedMapOfShape.hxx>
// Qt
#ifndef __QtAll__
# include <Gui/QtAll.h>
#endif
// Inventor
#ifndef __InventorAll__
# include <Gui/InventorAll.h>
#endif
#endif // _PreComp_
#endif // __PRECOMPILED_GUI__

View File

@@ -71,16 +71,12 @@
#include <gp_Pnt.hxx>
// Qt
#ifndef __QtAll__
#include <Gui/QtAll.h>
#endif
#include <QWidgetAction>
// all of Inventor
#ifndef __InventorAll__
#include <Gui/InventorAll.h>
#endif
#endif //_PreComp_

View File

@@ -47,9 +47,7 @@
#endif
// Qt Toolkit
#ifndef __QtAll__
#include <Gui/QtAll.h>
#endif
#endif //_PreComp_

View File

@@ -61,9 +61,7 @@
#endif
// Qt Toolkit
#ifndef __QtAll__
#include <Gui/QtAll.h>
#endif
#endif //_PreComp_