Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More SonarCloud "bug" fixes in Imath #580

Merged
merged 2 commits into from
Oct 11, 2019

Conversation

xlietz
Copy link
Contributor

@xlietz xlietz commented Oct 8, 2019

Various SonarCloud bug fixes:

  • added explicit destructors.
  • added explicit copy constructor.
  • added NOSONAR exceptions for array index operators in math primitive classes, current method of accessing is proven and fast.
  • removed unreachable return statement.

Signed-off-by: Christina Tempelaar-Lietz <[email protected]>
// Destructor
//-------------

~Euler();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should be able to declare this as ~Euler() = default; and not have to provide the definition below. That should force it to be the empty function - same behavior but fewer lines of code, and the intention is a bit clearer. Same with the other classes below.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good, I will change that everywhere!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I pushed a new version, let me know if all looks good now!

…ray index operators.

Signed-off-by: Christina Tempelaar-Lietz <[email protected]>
Copy link
Member

@cary-ilm cary-ilm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@xlietz xlietz merged commit 7e7e0d4 into AcademySoftwareFoundation:master Oct 11, 2019
@xlietz xlietz deleted the sonar-fixes branch October 11, 2019 07:40
@cary-ilm cary-ilm added this to the v2.5.0 milestone Apr 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants