mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-19 13:40:49 +03:00
0029310: Coding - multiple compiler warnings in Inspectors
1. Added specific header files to disable and restore compiler warnings: Standard_WarningsDisable.hxx, Standard_WarningsRestore.hxx. (Currently only MSVC compiler is handled.) 2. Inspector: compiler warnings are disabled for all includes of Qt headers. 3. Inspector: minor code correction to avoid warning due to use of floating point values in integer calculations.
This commit is contained in:
@@ -19,11 +19,10 @@
|
||||
#include <inspector/DFBrowserPane.hxx>
|
||||
#include <TopoDS_Shape.hxx>
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(disable : 4127) // conditional expression is constant
|
||||
#endif
|
||||
#include <Standard_WarningsDisable.hxx>
|
||||
#include <QObject>
|
||||
#include <QModelIndex>
|
||||
#include <Standard_WarningsRestore.hxx>
|
||||
|
||||
//! \class DFBrowserPane_HelperExport
|
||||
//! \brief It performs export to BREP of a shape by button is pressed
|
||||
@@ -65,7 +64,13 @@ public slots:
|
||||
void OnButtonPressed (const QModelIndex& theIndex);
|
||||
|
||||
private:
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(push, 0) // 4251: class 'QMap<QModelIndex,TopoDS_Shape>' needs to have dll-interface...
|
||||
#endif
|
||||
QMap<QModelIndex, TopoDS_Shape> myShapes; //!< a container of shapes
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(pop)
|
||||
#endif
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user