diff src/name/blackcap/exifwasher/Whitelist.kt @ 5:dc1f4359659d

Got it compiling.
author David Barts <n5jrn@me.com>
date Thu, 09 Apr 2020 18:20:34 -0700
parents 19c381c536ec
children aafc9c127c7b
line wrap: on
line diff
--- a/src/name/blackcap/exifwasher/Whitelist.kt	Wed Apr 08 21:31:30 2020 -0700
+++ b/src/name/blackcap/exifwasher/Whitelist.kt	Thu Apr 09 18:20:34 2020 -0700
@@ -33,14 +33,14 @@
 
     override fun toString(): String = toList().joinToString(",")
 
-    override public fun clone() = this().also { new ->
+    override public fun clone() = Whitelist().also { new ->
         entire.forEach { new.addEntire(it) }
         prefixes.forEach { new.addPrefix(it) }
     }
 
     companion object {
         private val SPLITTER = Pattern.compile(",\\s*")
-        fun parse(raw: String) = this().also {
+        fun parse(raw: String) = Whitelist().also {
             for (s in raw.split(SPLITTER)) {
                 it.add(s)
             }