occt: master aa00364d
Author | Committer | Branch | Timestamp | Parent |
---|---|---|---|---|
abv | master | 2016-02-17 14:33:18 | master fe9b8ff2 | |
Affected Issues | 0026377: Passing Handle objects as arguments to functions as non-const reference to base type is dangerous | |||
Changeset | 0026377: Passing Handle objects as arguments to functions as non-const reference to base type is dangerous Operator of cast to non-const reference is declared deprecated to produce compiler warning if used (usually implicitly). OCCT code is updated to avoid that cast, occurring when function accepting non-const reference to handle is called with handle to derived type. For that, local variable of argument type is passed instead, and down-cast is used to get it to desired type after the call. A few occurrences of use of uninitialized variable are corrected. |
|||
mod - src/AIS/AIS_AngleDimension.cxx | Diff File | |||
mod - src/AIS/AIS_Chamf2dDimension.cxx | Diff File | |||
mod - src/AIS/AIS_SymmetricRelation.cxx | Diff File | |||
mod - src/BinDrivers/BinDrivers_DocumentRetrievalDriver.cxx | Diff File | |||
mod - src/BinDrivers/BinDrivers_DocumentStorageDriver.cxx | Diff File | |||
mod - src/BinMXCAFDoc/BinMXCAFDoc.cxx | Diff File | |||
mod - src/DDF/DDF.hxx | Diff File | |||
mod - src/DDocStd/DDocStd.hxx | Diff File | |||
mod - src/Dico/Dico_DictionaryOfTransient.hxx | Diff File | |||
mod - src/DrawTrSurf/DrawTrSurf.cxx | Diff File | |||
mod - src/GeomTools/GeomTools.cxx | Diff File | |||
mod - src/GeomTools/GeomTools_Curve2dSet.cxx | Diff File | |||
mod - src/GeomTools/GeomTools_Curve2dSet.hxx | Diff File | |||
mod - src/GeomTools/GeomTools_CurveSet.cxx | Diff File | |||
mod - src/GeomTools/GeomTools_CurveSet.hxx | Diff File | |||
mod - src/GeomTools/GeomTools_SurfaceSet.cxx | Diff File | |||
mod - src/GeomTools/GeomTools_SurfaceSet.hxx | Diff File | |||
mod - src/IFSelect/IFSelect_Activator.cxx | Diff File | |||
mod - src/IGESData/IGESData_BasicEditor.cxx | Diff File | |||
mod - src/IGESData/IGESData_FreeFormatEntity.cxx | Diff File | |||
mod - src/IGESData/IGESData_IGESReaderTool.cxx | Diff File | |||
mod - src/IGESData/IGESData_ParamReader.cxx | Diff File | |||
mod - src/IGESData/IGESData_ParamReader.hxx | Diff File | |||
mod - src/IGESData/IGESData_ToolLocation.cxx | Diff File | |||
mod - src/IGESDraw/IGESDraw_ToolViewsVisible.cxx | Diff File | |||
mod - src/IGESDraw/IGESDraw_ToolViewsVisibleWithAttr.cxx | Diff File | |||
mod - src/IGESGeom/IGESGeom_ToolBoundedSurface.cxx | Diff File | |||
mod - src/IGESSelect/IGESSelect_RebuildDrawings.cxx | Diff File | |||
mod - src/IGESSolid/IGESSolid_ToolManifoldSolid.cxx | Diff File | |||
mod - src/IGESSolid/IGESSolid_ToolToroidalSurface.cxx | Diff File | |||
mod - src/Interface/Interface_CopyTool.cxx | Diff File | |||
mod - src/IntTools/IntTools_FaceFace.cxx | Diff File | |||
mod - src/MoniTool/MoniTool_Profile.cxx | Diff File | |||
mod - src/OpenGl/OpenGl_Context.cxx | Diff File | |||
mod - src/OpenGl/OpenGl_Context.hxx | Diff File | |||
mod - src/OpenGl/OpenGl_View_Raytrace.cxx | Diff File | |||
mod - src/PrsMgr/PrsMgr_PresentationManager.cxx | Diff File | |||
mod - src/QANCollection/QANCollection_Handle.cxx | Diff File | |||
mod - src/Select3D/Select3D_SensitiveGroup.cxx | Diff File | |||
mod - src/Standard/Standard_Handle.hxx | Diff File | |||
mod - src/StdObjMgt/StdObjMgt_ReadData.hxx | Diff File | |||
mod - src/STEPCAFControl/STEPCAFControl_Writer.cxx | Diff File | |||
mod - src/StepData/StepData_StepReaderData.cxx | Diff File | |||
mod - src/StepData/StepData_StepReaderData.hxx | Diff File | |||
mod - src/StepData/StepData_StepReaderTool.cxx | Diff File | |||
mod - src/TDF/TDF_Attribute.hxx | Diff File | |||
mod - src/TDF/TDF_Label.hxx | Diff File | |||
mod - src/TDF/TDF_RelocationTable.hxx | Diff File | |||
mod - src/TNaming/TNaming_NamedShape.cxx | Diff File | |||
mod - src/TPrsStd/TPrsStd_ConstraintTools.cxx | Diff File | |||
mod - src/Transfer/Transfer_ProcessForFinder.hxx | Diff File | |||
mod - src/VrmlData/VrmlData_IndexedFaceSet.cxx | Diff File | |||
mod - src/VrmlData/VrmlData_IndexedLineSet.cxx | Diff File | |||
mod - src/VrmlData/VrmlData_Node.cxx | Diff File | |||
mod - src/XmlDrivers/XmlDrivers_DocumentRetrievalDriver.cxx | Diff File | |||
mod - src/XmlDrivers/XmlDrivers_DocumentStorageDriver.cxx | Diff File | |||
mod - src/XmlMXCAFDoc/XmlMXCAFDoc.cxx | Diff File | |||
mod - tests/de/iges_2/F9 | Diff File | |||
mod - tests/perf/fclasses/handle | Diff File |