mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-07-10 12:28:17 +08:00
0031671: Coding Rules - eliminate warnings issued by clang 11
Fixed -Wdeprecated-copy warning by removing trivial operator=. Fixed formatting issues in places producing -Wmisleading-indentation warning.
This commit is contained in:
@@ -61,23 +61,12 @@ public:
|
||||
Iterator (const NCollection_Vector& theVector, Standard_Boolean theToEnd = Standard_False)
|
||||
: NCollection_BaseVector::Iterator (theVector, theToEnd) {}
|
||||
|
||||
//! Copy constructor
|
||||
Iterator (const Iterator& theOther)
|
||||
: NCollection_BaseVector::Iterator (theOther) {}
|
||||
|
||||
//! Initialisation
|
||||
void Init (const NCollection_Vector& theVector)
|
||||
{
|
||||
initV (theVector);
|
||||
}
|
||||
|
||||
//! Assignment
|
||||
Iterator& operator= (const Iterator& theOther)
|
||||
{
|
||||
copyV (theOther);
|
||||
return *this;
|
||||
}
|
||||
|
||||
//! Check end
|
||||
Standard_Boolean More() const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user