1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00

0032429: Coding - Warnings during compilation on macosx arm64 with option BUILD_Inspector:BOOL=ON

This commit is contained in:
kgv 2021-06-10 17:46:20 +03:00 committed by bugmaster
parent 690757a382
commit 4db6d89bc6
9 changed files with 7 additions and 17 deletions

View File

@ -88,7 +88,7 @@ protected:
: DFBrowser_ItemBase (theParent, theRow, theColumn) {}
//! Initializes the current item. It creates a backup of the specific item information
void initItem() const;
virtual void initItem() const Standard_OVERRIDE;
//! Sets the item attribute
//! \param theAttribute an item attribute

View File

@ -32,8 +32,6 @@
#include <QAbstractItemModel>
#include <Standard_WarningsRestore.hxx>
const int COLUMN_NAME_WIDTH = 300;
// =======================================================================
// function : Constructor
// purpose :

View File

@ -86,19 +86,11 @@
#endif
#include <Standard_WarningsRestore.hxx>
const int DFBROWSER_DEFAULT_WIDTH = 650;
const int DFBROWSER_DEFAULT_HEIGHT = 350;
const int DFBROWSER_DEFAULT_TREE_VIEW_WIDTH = 325;
const int DFBROWSER_DEFAULT_TREE_VIEW_HEIGHT = 500;
const int DFBROWSER_DEFAULT_VIEW_WIDTH = 400;
const int DFBROWSER_DEFAULT_VIEW_HEIGHT = 300;
const int DFBROWSER_DEFAULT_POSITION_X = 200;
const int DFBROWSER_DEFAULT_POSITION_Y = 60;
const int DEFAULT_PROPERTY_PANEL_HEIGHT = 200;
const int DEFAULT_BROWSER_HEIGHT = 800;
static Standard_Boolean MyIsUseDumpJson = Standard_False;
// =======================================================================

View File

@ -35,7 +35,7 @@ public:
protected:
//! Initialize the current item. It creates a backup of the specific item information
virtual void initItem() const {};
virtual void initItem() const Standard_OVERRIDE {};
//! Constructor
//! param theParent a parent item

View File

@ -40,7 +40,7 @@ public:
//! Returns data object of the item.
//! \return object
virtual const Handle(Standard_Transient)& Object() const { initItem(); return myContext; }
virtual const Handle(Standard_Transient)& Object() const Standard_OVERRIDE { initItem(); return myContext; }
//! Returns number of displayed presentations
//! \return rows count

View File

@ -45,7 +45,7 @@ public:
//! Returns data object of the item.
//! \return object
virtual const Handle(Standard_Transient)& Object() const { initItem(); return myLight; }
virtual const Handle(Standard_Transient)& Object() const Standard_OVERRIDE { initItem(); return myLight; }
//! Returns the current light, init item if it was not initialized yet
//! \return interactive object

View File

@ -43,7 +43,7 @@ public:
//! Returns data object of the item.
//! \return object
virtual const Handle(Standard_Transient)& Object() const { initItem(); return myIO; }
virtual const Handle(Standard_Transient)& Object() const Standard_OVERRIDE { initItem(); return myIO; }
//! Returns the current interactive object, init item if it was not initialized yet
//! \return interactive object

View File

@ -45,7 +45,7 @@ public:
//! Returns data object of the item.
//! \return object
virtual const Handle(Standard_Transient)& Object() const { initItem(); return myViewerSelector; }
virtual const Handle(Standard_Transient)& Object() const Standard_OVERRIDE { initItem(); return myViewerSelector; }
//! Returns the current viewer, init item if it was not initialized yet
//! \return interactive object

View File

@ -45,7 +45,7 @@ public:
//! Returns data object of the item.
//! \return object
virtual const Handle(Standard_Transient)& Object() const { initItem(); return myViewer; }
virtual const Handle(Standard_Transient)& Object() const Standard_OVERRIDE { initItem(); return myViewer; }
//! Returns the current viewer, init item if it was not initialized yet
//! \return interactive object