mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-03 14:10:33 +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:
@@ -25,12 +25,13 @@
|
||||
#include <TDF_ListIteratorOfDeltaList.hxx>
|
||||
#include <Standard_Version.hxx>
|
||||
|
||||
#include <QVariant>
|
||||
#include <QWidget>
|
||||
|
||||
#include <Standard_WarningsDisable.hxx>
|
||||
#include <QGridLayout>
|
||||
#include <QGroupBox>
|
||||
#include <QTableView>
|
||||
#include <QVariant>
|
||||
#include <QWidget>
|
||||
#include <Standard_WarningsRestore.hxx>
|
||||
|
||||
// =======================================================================
|
||||
// function : Constructor
|
||||
@@ -105,7 +106,7 @@ void DFBrowserPane_TDocStdOwner::GetValues (const Handle(TDF_Attribute)& theAttr
|
||||
<< aSeparationStr.ToCString() << aSeparationStr.ToCString()
|
||||
<< "IsSaved" << DFBrowserPane_Tools::BoolToStr (aDocument->IsSaved())
|
||||
<< "IsChanged" << DFBrowserPane_Tools::BoolToStr (aDocument->IsChanged())
|
||||
<< "GetSavedTime" << DFBrowserPane_Tools::BoolToStr (aDocument->GetSavedTime())
|
||||
<< "GetSavedTime" << aDocument->GetSavedTime()
|
||||
<< "GetName" << (aDocument->IsSaved() ? DFBrowserPane_Tools::ToString (aDocument->GetName()) : "")
|
||||
<< "GetPath" << (aDocument->IsSaved() ? DFBrowserPane_Tools::ToString (aDocument->GetPath()) : "")
|
||||
<< "GetData" << aDocumentDataInfo.ToCString()
|
||||
|
Reference in New Issue
Block a user