mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03: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:
@@ -35,27 +35,25 @@
|
||||
|
||||
IMPLEMENT_STANDARD_RTTIEXT(SelectMgr_ViewerSelector, Standard_Transient)
|
||||
|
||||
namespace {
|
||||
// Comparison operator for sorting selection results
|
||||
namespace
|
||||
{
|
||||
//! Comparison operator for sorting selection results
|
||||
class CompareResults
|
||||
{
|
||||
public:
|
||||
|
||||
CompareResults (const SelectMgr_IndexedDataMapOfOwnerCriterion& aMapOfCriterion)
|
||||
: myMapOfCriterion (aMapOfCriterion)
|
||||
|
||||
CompareResults (const SelectMgr_IndexedDataMapOfOwnerCriterion& theMapOfCriterion)
|
||||
: myMapOfCriterion (&theMapOfCriterion)
|
||||
{
|
||||
}
|
||||
|
||||
Standard_Boolean operator() (Standard_Integer theLeft, Standard_Integer theRight) const
|
||||
{
|
||||
return myMapOfCriterion.FindFromIndex(theLeft) > myMapOfCriterion.FindFromIndex(theRight);
|
||||
return myMapOfCriterion->FindFromIndex (theLeft) > myMapOfCriterion->FindFromIndex (theRight);
|
||||
}
|
||||
|
||||
private:
|
||||
void operator = (const CompareResults&);
|
||||
|
||||
private:
|
||||
const SelectMgr_IndexedDataMapOfOwnerCriterion& myMapOfCriterion;
|
||||
const SelectMgr_IndexedDataMapOfOwnerCriterion* myMapOfCriterion;
|
||||
};
|
||||
|
||||
static const Graphic3d_Mat4d SelectMgr_ViewerSelector_THE_IDENTITY_MAT;
|
||||
|
Reference in New Issue
Block a user