Clean up comments, USB flash, NULLs
This commit is contained in:
@@ -119,9 +119,8 @@ void Touch::idle() {
|
||||
NOMORE(y, current_control->y + current_control->height);
|
||||
touch(current_control);
|
||||
}
|
||||
else {
|
||||
current_control = NULL;
|
||||
}
|
||||
else
|
||||
current_control = nullptr;
|
||||
}
|
||||
else {
|
||||
for (i = 0; i < controls_count; i++) {
|
||||
@@ -133,7 +132,7 @@ void Touch::idle() {
|
||||
}
|
||||
}
|
||||
|
||||
if (current_control == NULL)
|
||||
if (!current_control)
|
||||
touch_time = last_touch_ms;
|
||||
}
|
||||
x = _x;
|
||||
@@ -141,7 +140,7 @@ void Touch::idle() {
|
||||
}
|
||||
else {
|
||||
x = y = 0;
|
||||
current_control = NULL;
|
||||
current_control = nullptr;
|
||||
touch_time = 0;
|
||||
touch_control_type = NONE;
|
||||
time_to_hold = 0;
|
||||
|
Reference in New Issue
Block a user