Merge lp:~mc-return/compiz/compiz.merge-fix1105969-showmouse-code-needs-cleanup into lp:compiz/0.9.9
Proposed by
MC Return
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Brandon Schaefer | ||||
Approved revision: | 3587 | ||||
Merged at revision: | 3592 | ||||
Proposed branch: | lp:~mc-return/compiz/compiz.merge-fix1105969-showmouse-code-needs-cleanup | ||||
Merge into: | lp:compiz/0.9.9 | ||||
Diff against target: |
24 lines (+2/-3) 1 file modified
plugins/showmouse/src/showmouse.cpp (+2/-3) |
||||
To merge this branch: | bzr merge lp:~mc-return/compiz/compiz.merge-fix1105969-showmouse-code-needs-cleanup | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Brandon Schaefer (community) | Approve | ||
Sam Spilsbury | Needs Information | ||
PS Jenkins bot | continuous-integration | Pending | |
Review via email:
|
Commit message
Showmouse cleanup:
Made nE an unsigned int to begin with as optionGetEmitters ()
will just return u-int values from 1 to 10.
No need to calculate MIN (10, optionGetEmitters ()) for the
same reason.
Removed redundant calculation of one rVal (random value), because
this rVal is being recalculated a few lines later before being used
again.
(LP: #1105969)
Description of the change
No formatting changes. :)
To post a comment you must log in.
This all looks fine, the only bit I have a concern over is:
18 - int nE = MIN (10, optionGetEmitters ());
19 + unsigned int nE = optionGetEmitters ();
That would change behaviour, but I guess the point is that the real minimum should be controlled by the user, yes?