summaryrefslogtreecommitdiffstats
path: root/win/C#/Parsing/Chapter.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2009-04-01 23:48:34 +0000
committersr55 <[email protected]>2009-04-01 23:48:34 +0000
commit414d6a56cc67f2fa56353ee3ce80adaa8cfeb45f (patch)
tree171172730223e0e525b68f4afb3ea6ff2e5ccc9c /win/C#/Parsing/Chapter.cs
parent683faec1c917365b32332d86693e72479ba315bf (diff)
WinGui:
- Just some minor code tweaks to clean things up. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2291 b64f7644-9d1e-0410-96f1-a4d463321fa5
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)