0024023: Revamp the OCCT Handle -- general
[occt.git] / src / AIS / AIS_InteractiveContext_2.cxx
index 0fef964..0b58c79 100644 (file)
@@ -674,7 +674,7 @@ Standard_Integer AIS_InteractiveContext::PurgeDisplay()
 //=======================================================================
 Standard_Integer AIS_InteractiveContext::PurgeViewer(const Handle(V3d_Viewer)& Vwr)
 {
-  const Handle(Graphic3d_StructureManager)& GSM = Vwr->Viewer();
+  Handle(Graphic3d_StructureManager) GSM = Vwr->Viewer();
   Standard_Integer NbCleared(0);
   Graphic3d_MapOfStructure SOS;
   GSM->DisplayedStructures(SOS);