View Issue Details

IDProjectCategoryView StatusLast Update
0029414CommunityOCCT:Codingpublic2019-07-11 12:32
ReporterVico Liang Assigned Tobugmaster  
PrioritynormalSeverityminor 
Status closedResolutionno change required 
Product Version7.4.0 
Target Version7.4.0 
Summary0029414: Coding Rules - remove duplicate methods in class Prs3d_DatumAspect
DescriptionThese 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; }
TagsNo tags attached.
Test case number

Relationships

child of 0029109 closedbugmaster Visualization, AIS_Trihedron - add option hiding arrows tips 

Activities

kgv

2018-01-09 11:44

developer   ~0073269

Last edited: 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.

kgv

2019-07-10 23:27

developer   ~0085579

Dear bugmaster,

please close the bug.

Issue History

Date Modified Username Field Change
2018-01-08 09:47 Vico Liang New Issue
2018-01-08 09:47 Vico Liang Assigned To => kgv
2018-01-09 11:44 kgv Note Added: 0073269
2018-01-09 11:44 kgv Note Edited: 0073269
2018-01-09 11:44 kgv Relationship added child of 0029109
2018-01-09 11:44 kgv Product Version => 7.4.0
2018-01-09 11:44 kgv Summary Remove duplicate methods in class Prs3d_DatumAspect => Coding Rules - remove duplicate methods in class Prs3d_DatumAspect
2019-07-10 19:27 abv Target Version 7.4.0 => 7.5.0
2019-07-10 23:27 kgv Note Added: 0085579
2019-07-10 23:27 kgv Assigned To kgv => bugmaster
2019-07-10 23:27 kgv Status new => feedback
2019-07-10 23:27 kgv Resolution open => no change required
2019-07-10 23:27 kgv Target Version 7.5.0 => 7.4.0
2019-07-11 12:32 bugmaster Status feedback => closed