Skip to content

Commit f6633e4

Browse files
committed
Use MarkupParseResult constructor
1 parent fa77416 commit f6633e4

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

Runtime/LineProviders/LocalizedLine.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public Markup.MarkupParseResult TextWithoutCharacterName
102102
RawText = "!! ERROR: Missing line!",
103103
Substitutions = System.Array.Empty<string>(),
104104
TextID = "<missing>",
105-
Text = new Markup.MarkupParseResult { Text = "!! ERROR: Missing line!", Attributes = new System.Collections.Generic.List<Markup.MarkupAttribute>() }
105+
Text = new Markup.MarkupParseResult("!! ERROR: Missing line!", new System.Collections.Generic.List<Markup.MarkupAttribute>())
106106
};
107107
}
108108

Tests/Runtime/DialogueRunnerTests/BuiltinLineProviderTests.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,7 @@ internal class FakeMarkupParser : IMarkupParser
2828
{
2929
public MarkupParseResult ParseMarkup(string rawText, string localeCode)
3030
{
31-
return new MarkupParseResult
32-
{
33-
Attributes = new List<MarkupAttribute>(),
34-
Text = rawText,
35-
};
31+
return new MarkupParseResult(rawText, new());
3632
}
3733
}
3834

0 commit comments

Comments
 (0)