mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +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:
@@ -78,8 +78,7 @@ protected:
|
||||
AlignedSize(){}
|
||||
AlignedSize(const Standard_Size theValue)
|
||||
: myValue((theValue + Align - 1) & ~(Align - 1)) {}
|
||||
operator Standard_Size() {return myValue;}
|
||||
operator const Standard_Size() const {return myValue;}
|
||||
operator Standard_Size() const {return myValue;}
|
||||
};
|
||||
|
||||
//! A pointer aligned to a 4 byte boundary
|
||||
@@ -90,10 +89,8 @@ protected:
|
||||
AlignedPtr(){}
|
||||
AlignedPtr(const Standard_Address theValue)
|
||||
: myValue((Standard_Byte*)((Standard_Size)theValue & ~(Align - 1))) {}
|
||||
operator Standard_Address () {return myValue;}
|
||||
operator Standard_Address const () const {return myValue;}
|
||||
operator Standard_Byte* () {return myValue;}
|
||||
operator Standard_Byte* const () const {return myValue;}
|
||||
operator Standard_Address () const {return myValue;}
|
||||
operator Standard_Byte* () const {return myValue;}
|
||||
AlignedPtr operator -(const AlignedSize theValue) const
|
||||
{return myValue - theValue;}
|
||||
AlignedPtr operator +(const AlignedSize theValue) const
|
||||
|
Reference in New Issue
Block a user