MantisBT - Community
View Issue Details
0029414Community[OCCT] OCCT:Codingpublic2018-01-08 09:472019-07-11 12:32
Vico Liang 
bugmaster 
normalminor 
closedno change required 
[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
2019-07-10 19:27abvTarget Version7.4.0 => 7.5.0*
2019-07-10 23:27kgvNote Added: 0085579
2019-07-10 23:27kgvAssigned Tokgv => bugmaster
2019-07-10 23:27kgvStatusnew => feedback
2019-07-10 23:27kgvResolutionopen => no change required
2019-07-10 23:27kgvTarget Version7.5.0* => 7.4.0
2019-07-11 12:32bugmasterStatusfeedback => closed

Notes
(0073269)
kgv   
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.

(0085579)
kgv   
2019-07-10 23:27   
Dear bugmaster,

please close the bug.