From c7916f74964246bee4d256c106b01c7e317e6c10 Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Tue, 17 Mar 2015 19:54:11 +0100 Subject: default objects -> companion objects --- src/Model/Content.kt | 4 ++-- src/Model/DocumentationNode.kt | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/Model') diff --git a/src/Model/Content.kt b/src/Model/Content.kt index 176be8d3..0244359e 100644 --- a/src/Model/Content.kt +++ b/src/Model/Content.kt @@ -3,7 +3,7 @@ package org.jetbrains.dokka import kotlin.properties.Delegates public abstract class ContentNode { - default object { + companion object { val empty = ContentEmpty } } @@ -126,7 +126,7 @@ public open class Content(): ContentBlock() { fun findSectionByTag(tag: String): ContentSection? = sections.firstOrNull { tag.equalsIgnoreCase(it.tag) } - default object { + companion object { val Empty = Content() } } diff --git a/src/Model/DocumentationNode.kt b/src/Model/DocumentationNode.kt index 663ca021..9e8a981f 100644 --- a/src/Model/DocumentationNode.kt +++ b/src/Model/DocumentationNode.kt @@ -78,8 +78,8 @@ public open class DocumentationNode(val name: String, Function Property - DefaultObjectProperty - DefaultObjectFunction + CompanionObjectProperty + CompanionObjectFunction Parameter Receiver -- cgit