From 7b70ae4c9069315dc97576a3346701be4fff81dd Mon Sep 17 00:00:00 2001 From: Edwin Jakobs Date: Tue, 18 Aug 2020 10:02:55 +0200 Subject: [PATCH] [orx-panel] Fix watchHash for Kotlin 1.4 --- orx-panel/src/main/kotlin/org/openrndr/panel/hash/WatchHash.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/orx-panel/src/main/kotlin/org/openrndr/panel/hash/WatchHash.kt b/orx-panel/src/main/kotlin/org/openrndr/panel/hash/WatchHash.kt index 8310ae9c..04fa2e5a 100644 --- a/orx-panel/src/main/kotlin/org/openrndr/panel/hash/WatchHash.kt +++ b/orx-panel/src/main/kotlin/org/openrndr/panel/hash/WatchHash.kt @@ -7,7 +7,7 @@ import kotlin.reflect.full.declaredMemberProperties fun watchHash(toHash: Any): Int { var hash = 0 for (property in toHash::class.declaredMemberProperties) { - val v = ((property.getter) as KProperty1).invoke(toHash) + val v = ((property as KProperty1).getter).invoke(toHash) if (v is KProperty0<*>) { val pv = v.get() hash = 31 * hash + (pv?.hashCode() ?: 0)