Mantis Bug Tracker Workflow

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0029414Community[OCCT] OCCT:Codingpublic2018-01-08 09:472018-01-09 11:44
ReporterVico Liang 
Assigned Tokgv 
PlatformOSOS Version
Product Version[OCCT] 7.4.0* 
Target Version[OCCT] 7.4.0*Fixed in Version 
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
Attached Files

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

-  Notes
kgv (developer)
2018-01-09 11:44
edited on: 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.

- 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 View Revisions
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

Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker