-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add DanglingLineData and TwtData (#379) #432
base: integration/v1.6.0
Are you sure you want to change the base?
Conversation
6ed23d1
to
0b44f0a
Compare
0b44f0a
to
ecfd366
Compare
ecfd366
to
22b9d7d
Compare
m_ratedU0(twt.getRatedU0()) { | ||
m_rho1 = rho(twt.getLeg1(), m_ratedU0); | ||
m_rho2 = rho(twt.getLeg2(), m_ratedU0); | ||
m_rho3 = rho(twt.getLeg3(), m_ratedU0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why these variables are not initialized in the initialization list?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because m_ratedU0
needs to be initialized, and we cannot initialize m_rho1
in initializer list after m_ratedU0
without having a compiler warning. The solution could be to reorder attributes so that m_rho{1,2,3}
are declared after m_ratedU0
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to use m_rated0 because it’s equivalent to twt.getRated0()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes it is needed because it is returned by TwtData::getRatedU0()
… implementation to use it Signed-off-by: Sébastien LAIGRE <[email protected]>
Signed-off-by: Sébastien LAIGRE <[email protected]>
Signed-off-by: Sébastien LAIGRE <[email protected]>
22b9d7d
to
ffa4c16
Compare
Kudos, SonarCloud Quality Gate passed! |
Kudos, SonarCloud Quality Gate passed! |
Please check if the PR fulfills these requirements (please use
'[x]'
to check the checkboxes, or submit the PR and then click the checkboxes)Does this PR already have an issue describing the problem ? If so, link to this issue using
'#XXX'
and skip the restCloses #379
What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
What is the current behavior? (You can also link to an open issue here)
What is the new behavior (if this is a feature change)?
Does this PR introduce a breaking change or deprecate an API? If yes, check the following:
Other information:
(if any of the questions/checkboxes don't apply, please delete them entirely)