summaryrefslogtreecommitdiffstats
path: root/win/C#/Parsing/Chapter.cs
diff options
context:
space:
mode:
Diffstat (limited to 'win/C#/Parsing/Chapter.cs')
-rw-r--r--win/C#/Parsing/Chapter.cs11
1 files changed, 6 insertions, 5 deletions
diff --git a/win/C#/Parsing/Chapter.cs b/win/C#/Parsing/Chapter.cs
index 301fa5719..1bf38f4d8 100644
--- a/win/C#/Parsing/Chapter.cs
+++ b/win/C#/Parsing/Chapter.cs
@@ -51,13 +51,14 @@ namespace Handbrake.Parsing
@"^ \+ ([0-9]*): cells ([0-9]*)->([0-9]*), ([0-9]*) blocks, duration ([0-9]{2}:[0-9]{2}:[0-9]{2})");
if (m.Success)
{
- var thisChapter = new Chapter();
- thisChapter.m_chapterNumber = int.Parse(m.Groups[1].Value.Trim());
- thisChapter.m_duration = TimeSpan.Parse(m.Groups[5].Value);
+ var thisChapter = new Chapter
+ {
+ m_chapterNumber = int.Parse(m.Groups[1].Value.Trim()),
+ m_duration = TimeSpan.Parse(m.Groups[5].Value)
+ };
return thisChapter;
}
- else
- return null;
+ return null;
}
public static Chapter[] ParseList(StringReader output)