using kotlin's newfangled 'x in xs.indices' instead of 'x in 0 until xs.size'

This commit is contained in:
minjaesong
2020-10-21 17:42:58 +09:00
parent 2437fed1ea
commit 0c48b9dce8
12 changed files with 25 additions and 25 deletions

View File

@@ -130,7 +130,7 @@ void main() {
val mouseUp: Boolean
get() {
for (k in 0 until subUIs.size) {
for (k in subUIs.indices) {
val ret2 = subUIs[k].mouseUp
if (ret2) return true
}