From 037e32fa24a2dd2d3437f969580e6389c1849541 Mon Sep 17 00:00:00 2001 From: Moritz Warning Date: Thu, 13 Oct 2022 18:45:19 +0200 Subject: [PATCH] Database.kt: use mutableListOf for initialization --- app/src/main/java/d/d/meshenger/Database.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/d/d/meshenger/Database.kt b/app/src/main/java/d/d/meshenger/Database.kt index f09bb304a..07f4a1cea 100644 --- a/app/src/main/java/d/d/meshenger/Database.kt +++ b/app/src/main/java/d/d/meshenger/Database.kt @@ -76,14 +76,14 @@ class Database { // default keys val defaults_iter = defaults.keys() - val defaults_keys: MutableList = ArrayList() + val defaults_keys = mutableListOf() while (defaults_iter.hasNext()) { defaults_keys.add(defaults_iter.next()) } // current keys val settings_iter = settings.keys() - val settings_keys: MutableList = ArrayList() + val settings_keys = mutableListOf() while (settings_iter.hasNext()) { settings_keys.add(settings_iter.next()) }