Closed cool-pants closed 4 years ago
The explanation makes sense. I'd be interested to see what problems this causes in the GUI, by demonstrating a problem that is fixed by this change.
Two code comments:
Every student's right of passage is learning how to make badass PRs. Always proofread your work. You can see the effect of all commits squashed in the Files tab: https://github.com/garbear/xbmc/pull/116/files. In this case there's still a minor readability infraction.
The "How Has This Been Tested?" is blank. This is what I was getting at earlier. How can we test your change?
Sorry work account from my phone
Can you please clarify what the infraction is, I still can't get it. Should I have aligned the = for both assignments?
Also I am still in process of building the code so I will update the description today.
Huh it shows perfectly fine on my device.
That's because you haven't configured your IDE to show leading and trailing whitespace. See the tab?
Thanks for the help. I fixed it now hopefully.
Looks good now. With some test data we can upstream.
This is a valid code path optimization. Merging to include in test build
Description
Changed the
hasWidth
parameter value allocation to set it totrue
after it is assigned a value.Motivation and Context
Before if
hasWidth
was setfalse
andhasRight
had valuetrue
andhasLeft
betrue
then the value returned by theGetDimension
function would befalse
which should be actuallytrue
since a value has been indeed assigned towidth
.How Has This Been Tested?
Tested by comparing data obtained from
GetDimensions()
method before and after method in log. The data was tested over four separate skins, namely:Screenshots (if appropriate):
Types of change
Checklist: