1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-29 14:00: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:
nds
2018-03-04 19:10:56 +03:00
committed by bugmaster
parent 50c4757387
commit 130eb11405
159 changed files with 396 additions and 123 deletions

View File

@@ -24,14 +24,13 @@
#include <TopLoc_Location.hxx>
#include <TopoDS_Shape.hxx>
#ifdef _MSC_VER
#pragma warning(disable : 4127) // conditional expression is constant
#endif
#include <Standard_WarningsDisable.hxx>
#include <QApplication>
#include <QString>
#include <QStyle>
#include <QString>
#include <QVariant>
#include <Standard_WarningsRestore.hxx>
#define PROPERTY_TABLE_ROW_COUNT 200
@@ -70,7 +69,7 @@ public:
//! Returns "true" or "false" text for the given boolean state
//! \param theValue a boolean value
//! \return string value
Standard_EXPORT static QString BoolToStr (const bool theValue) { return theValue ? "true" : "false"; }
Standard_EXPORT static QString BoolToStr (const Standard_Boolean theValue) { return theValue ? "true" : "false"; }
//! Converts a Qt string to OCCT extended string
//! \param theValue a converted string