summaryrefslogtreecommitdiffstats
path: root/win/C#/Functions/AppcastReader.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#/Functions/AppcastReader.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#/Functions/AppcastReader.cs')
-rw-r--r--win/C#/Functions/AppcastReader.cs21
1 files changed, 10 insertions, 11 deletions
diff --git a/win/C#/Functions/AppcastReader.cs b/win/C#/Functions/AppcastReader.cs
index 11f75fe09..b52c22d77 100644
--- a/win/C#/Functions/AppcastReader.cs
+++ b/win/C#/Functions/AppcastReader.cs
@@ -26,20 +26,19 @@ namespace Handbrake.Functions
/// </summary>
public void getInfo()
{
- Match ver;
- int stable_build, unstable_build = 0;
- string input, unstable_description = "", stable_description, unstable_version = "", stable_version;
- string stable_file, unstable_file = "";
+ int unstable_build = 0;
+ string unstable_description = "", unstable_version = "";
+ string unstable_file = "";
// Check the stable appcast and get the stable build number
readRss(new XmlTextReader(Properties.Settings.Default.appcast));
- input = nodeItem.InnerXml;
- ver = Regex.Match(input, @"sparkle:version=""([0-9]*)\""");
- stable_build = int.Parse(ver.ToString().Replace("sparkle:version=", "").Replace("\"", ""));
+ string input = nodeItem.InnerXml;
+ Match ver = Regex.Match(input, @"sparkle:version=""([0-9]*)\""");
+ int stable_build = int.Parse(ver.ToString().Replace("sparkle:version=", "").Replace("\"", ""));
ver = Regex.Match(input, @"sparkle:shortVersionString=""([0-9].[0-9].[0-9]*)\""");
- stable_version = ver.ToString().Replace("sparkle:shortVersionString=", "").Replace("\"", "");
- stable_description = nodeItem["description"].InnerText;
- stable_file = nodeItem["windows"].InnerText;
+ string stable_version = ver.ToString().Replace("sparkle:shortVersionString=", "").Replace("\"", "");
+ string stable_description = nodeItem["description"].InnerText;
+ string stable_file = nodeItem["windows"].InnerText;
// If this is a snapshot release, or the user wants to check for snapshot releases
if (Properties.Settings.Default.checkSnapshot == "Checked" || Properties.Settings.Default.hb_build.ToString().EndsWith("1"))
@@ -76,7 +75,7 @@ namespace Handbrake.Functions
/// Read the RSS file.
/// </summary>
/// <param name="rssReader"></param>
- private void readRss(XmlTextReader rssReader)
+ private void readRss(XmlReader rssReader)
{
rssDoc = new XmlDocument();
rssDoc.Load(rssReader);