MantisBT - Community
View Issue Details
0029414Community[OCCT] OCCT:Codingpublic2018-01-08 09:472018-01-09 11:44
Vico Liang 
[OCCT] 7.4.0* 
[OCCT] 7.4.0* 
0029414: Coding Rules - remove duplicate methods in class Prs3d_DatumAspect
These two method are duplicated in class Prs3d_DatumAspect, one should be removed.

  //! Sets option to draw or not to draw text labels for axes
  void SetDrawLabels (Standard_Boolean theToDraw) { myToDrawLabels = theToDraw; }
  void SetToDrawLabels (Standard_Boolean theToDraw) { myToDrawLabels = theToDraw; }
No tags attached.
child of 0029109closed bugmaster Visualization, AIS_Trihedron - add option hiding arrows tips 
Issue History
2018-01-08 09:47Vico LiangNew Issue
2018-01-08 09:47Vico LiangAssigned To => kgv
2018-01-09 11:44kgvNote Added: 0073269
2018-01-09 11:44kgvNote Edited: 0073269bug_revision_view_page.php?bugnote_id=73269#r18426
2018-01-09 11:44kgvRelationship addedchild of 0029109
2018-01-09 11:44kgvProduct Version => 7.4.0*
2018-01-09 11:44kgvSummaryRemove duplicate methods in class Prs3d_DatumAspect => Coding Rules - remove duplicate methods in class Prs3d_DatumAspect

2018-01-09 11:44   
The methods are duplicated on a purpose - to preserve compatibility with a code using old misspelled method Prs3d_DatumAspect::SetToDrawLabels().

Though such old misnamed methods can be marked by Standard_DEPRECATED for clarity, it looks not very important forcing users changing a code in these cases.