aboutsummaryrefslogtreecommitdiff
path: root/src/Model
diff options
context:
space:
mode:
Diffstat (limited to 'src/Model')
-rw-r--r--src/Model/Content.kt4
-rw-r--r--src/Model/DocumentationNode.kt4
2 files changed, 4 insertions, 4 deletions
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