Home
last modified time | relevance | path

Searched hist:"9 f2cce2faaddd7b08af1458bf56aadaed8179a3f" (Results 1 – 6 of 6) sorted by relevance

/haiku/src/apps/deskbar/
H A DResourceSet.cpp9f2cce2faaddd7b08af1458bf56aadaed8179a3f Sun Apr 07 16:55:17 UTC 2013 John Scipione <jscipione@gmail.com> Eliminate repeating CountItems() loop premature micro-optimization

Loop backwards if possible, if not, set a variable and use that instead.
There were a couple of instances where the loop style got changed from
for (int32 i = CountItems(); --i >= 0;)
to
for (int32 i = CountItems() - 1; i >= 0; i--) {
but should be functionally equivalent.
H A DShowHideMenuItem.cpp9f2cce2faaddd7b08af1458bf56aadaed8179a3f Sun Apr 07 16:55:17 UTC 2013 John Scipione <jscipione@gmail.com> Eliminate repeating CountItems() loop premature micro-optimization

Loop backwards if possible, if not, set a variable and use that instead.
There were a couple of instances where the loop style got changed from
for (int32 i = CountItems(); --i >= 0;)
to
for (int32 i = CountItems() - 1; i >= 0; i--) {
but should be functionally equivalent.
H A DSwitcher.cpp9f2cce2faaddd7b08af1458bf56aadaed8179a3f Sun Apr 07 16:55:17 UTC 2013 John Scipione <jscipione@gmail.com> Eliminate repeating CountItems() loop premature micro-optimization

Loop backwards if possible, if not, set a variable and use that instead.
There were a couple of instances where the loop style got changed from
for (int32 i = CountItems(); --i >= 0;)
to
for (int32 i = CountItems() - 1; i >= 0; i--) {
but should be functionally equivalent.
H A DStatusView.cpp9f2cce2faaddd7b08af1458bf56aadaed8179a3f Sun Apr 07 16:55:17 UTC 2013 John Scipione <jscipione@gmail.com> Eliminate repeating CountItems() loop premature micro-optimization

Loop backwards if possible, if not, set a variable and use that instead.
There were a couple of instances where the loop style got changed from
for (int32 i = CountItems(); --i >= 0;)
to
for (int32 i = CountItems() - 1; i >= 0; i--) {
but should be functionally equivalent.
H A DBarView.cpp9f2cce2faaddd7b08af1458bf56aadaed8179a3f Sun Apr 07 16:55:17 UTC 2013 John Scipione <jscipione@gmail.com> Eliminate repeating CountItems() loop premature micro-optimization

Loop backwards if possible, if not, set a variable and use that instead.
There were a couple of instances where the loop style got changed from
for (int32 i = CountItems(); --i >= 0;)
to
for (int32 i = CountItems() - 1; i >= 0; i--) {
but should be functionally equivalent.
H A DExpandoMenuBar.cpp9f2cce2faaddd7b08af1458bf56aadaed8179a3f Sun Apr 07 16:55:17 UTC 2013 John Scipione <jscipione@gmail.com> Eliminate repeating CountItems() loop premature micro-optimization

Loop backwards if possible, if not, set a variable and use that instead.
There were a couple of instances where the loop style got changed from
for (int32 i = CountItems(); --i >= 0;)
to
for (int32 i = CountItems() - 1; i >= 0; i--) {
but should be functionally equivalent.