mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0033375: Coding - Static Analyzing processing. Performance
Performance update applied: - moving to const reference as much as possible Result of CLANG_TIDY (static analyzing filter: perform*)
This commit is contained in:
@@ -88,7 +88,7 @@ namespace
|
||||
}
|
||||
|
||||
private:
|
||||
BVHBuilderAdaptorRegular& operator=(BVHBuilderAdaptorRegular) { return *this; }
|
||||
BVHBuilderAdaptorRegular& operator=(const BVHBuilderAdaptorRegular&) { return *this; }
|
||||
|
||||
private:
|
||||
ObjectsMap& myObjects;
|
||||
@@ -223,7 +223,7 @@ namespace
|
||||
}
|
||||
|
||||
private:
|
||||
BVHBuilderAdaptorPersistent& operator=(BVHBuilderAdaptorPersistent) { return *this; }
|
||||
BVHBuilderAdaptorPersistent& operator=(const BVHBuilderAdaptorPersistent&) { return *this; }
|
||||
|
||||
private:
|
||||
ObjectsMap& myObjects;
|
||||
|
@@ -98,7 +98,7 @@ const Handle(Graphic3d_Camera)& SelectMgr_SelectingVolumeManager::Camera() const
|
||||
// function : SetCamera
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
void SelectMgr_SelectingVolumeManager::SetCamera (const Handle(Graphic3d_Camera) theCamera)
|
||||
void SelectMgr_SelectingVolumeManager::SetCamera (const Handle(Graphic3d_Camera)& theCamera)
|
||||
{
|
||||
Standard_ASSERT_RAISE(!myActiveSelectingVolume.IsNull(),
|
||||
"SelectMgr_SelectingVolumeManager::SetCamera() should be called after initialization of selection volume ");
|
||||
|
@@ -89,7 +89,7 @@ public:
|
||||
//! Updates camera projection and orientation matrices in all selecting volumes
|
||||
//! Note: this method should be called after selection volume building
|
||||
//! else exception will be thrown
|
||||
Standard_EXPORT void SetCamera (const Handle(Graphic3d_Camera) theCamera);
|
||||
Standard_EXPORT void SetCamera (const Handle(Graphic3d_Camera)& theCamera);
|
||||
|
||||
//! Updates viewport in all selecting volumes
|
||||
//! Note: this method should be called after selection volume building
|
||||
|
@@ -1044,7 +1044,6 @@ void SelectMgr_ViewerSelector::MoveSelectableObject (const Handle(SelectMgr_Sele
|
||||
//=======================================================================
|
||||
void SelectMgr_ViewerSelector::RemoveSelectableObject (const Handle(SelectMgr_SelectableObject)& theObject)
|
||||
{
|
||||
Handle(SelectMgr_SelectableObject) anObj = theObject;
|
||||
if (myMapOfObjectSensitives.UnBind (theObject))
|
||||
{
|
||||
RemovePicked (theObject);
|
||||
|
Reference in New Issue
Block a user