1
0
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:
abv
2015-11-07 21:19:03 +03:00
parent cda9a0d4c2
commit 487bf1ceaa
52 changed files with 92 additions and 220 deletions

View File

@@ -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;
}

View File

@@ -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;

View File

@@ -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;
}