mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0024567: Coding rules - eliminate GCC warning -Wignored-qualifiers
Redundant const qualifiers of return types of functions returning values are removed
This commit is contained in:
@@ -517,7 +517,7 @@ void PrsMgr_PresentableObject::SetMutable (const Standard_Boolean theIsMutable)
|
||||
// function : IsMutable
|
||||
// purpose :
|
||||
// =======================================================================
|
||||
const Standard_Boolean PrsMgr_PresentableObject::IsMutable() const
|
||||
Standard_Boolean PrsMgr_PresentableObject::IsMutable() const
|
||||
{
|
||||
return myIsMutable;
|
||||
}
|
||||
|
@@ -182,7 +182,7 @@ public:
|
||||
|
||||
//! Returns true if object has mutable nature (content or location are be changed regularly).
|
||||
//! Mutable object will be managed in different way than static onces (another optimizations).
|
||||
Standard_EXPORT const Standard_Boolean IsMutable() const;
|
||||
Standard_EXPORT Standard_Boolean IsMutable() const;
|
||||
|
||||
//! Makes theObject child of current object in scene hierarchy.
|
||||
Standard_EXPORT virtual void AddChild (const Handle(PrsMgr_PresentableObject)& theObject);
|
||||
@@ -194,10 +194,10 @@ public:
|
||||
Standard_EXPORT const PrsMgr_ListOfPresentableObjects& Children() const;
|
||||
|
||||
//! Returns true if object should have own presentations.
|
||||
Standard_EXPORT const Standard_Boolean HasOwnPresentations() const;
|
||||
Standard_EXPORT Standard_Boolean HasOwnPresentations() const;
|
||||
|
||||
//! Returns parent of current object in scene hierarchy.
|
||||
Standard_EXPORT const PrsMgr_PresentableObjectPointer Parent() const;
|
||||
Standard_EXPORT PrsMgr_PresentableObjectPointer Parent() const;
|
||||
|
||||
|
||||
friend class PrsMgr_Presentation;
|
||||
|
@@ -42,12 +42,12 @@ inline const PrsMgr_ListOfPresentableObjects& PrsMgr_PresentableObject::Children
|
||||
return myChildren;
|
||||
}
|
||||
|
||||
inline const Standard_Boolean PrsMgr_PresentableObject::HasOwnPresentations() const
|
||||
inline Standard_Boolean PrsMgr_PresentableObject::HasOwnPresentations() const
|
||||
{
|
||||
return myHasOwnPresentations;
|
||||
}
|
||||
|
||||
inline const PrsMgr_PresentableObjectPointer PrsMgr_PresentableObject::Parent() const
|
||||
inline PrsMgr_PresentableObjectPointer PrsMgr_PresentableObject::Parent() const
|
||||
{
|
||||
return myParent;
|
||||
}
|
||||
|
Reference in New Issue
Block a user