summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrake.Interop/HandBrakeInterop/LanguageCodes.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2013-02-12 20:37:59 +0000
committersr55 <[email protected]>2013-02-12 20:37:59 +0000
commitd72b432378105f191bc7bf6f756bb7a7533dc79a (patch)
treec76b29f4e7248918f0011e9340d51bb3f9a7bfed /win/CS/HandBrake.Interop/HandBrakeInterop/LanguageCodes.cs
parent3a5365f662fdd94d12733e9c7b1e09745697b532 (diff)
WinGui: A Stylecop cleanup pass on Interop Library. Note, moved the Eventargs into their own package.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5248 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrake.Interop/HandBrakeInterop/LanguageCodes.cs')
-rw-r--r--win/CS/HandBrake.Interop/HandBrakeInterop/LanguageCodes.cs10
1 files changed, 2 insertions, 8 deletions
diff --git a/win/CS/HandBrake.Interop/HandBrakeInterop/LanguageCodes.cs b/win/CS/HandBrake.Interop/HandBrakeInterop/LanguageCodes.cs
index 373dcb816..7fbb7be1f 100644
--- a/win/CS/HandBrake.Interop/HandBrakeInterop/LanguageCodes.cs
+++ b/win/CS/HandBrake.Interop/HandBrakeInterop/LanguageCodes.cs
@@ -10,6 +10,7 @@
namespace HandBrake.Interop
{
using System.Collections.Generic;
+ using System.Linq;
/// <summary>
/// Contains utilities for converting language codes.
@@ -232,14 +233,7 @@ namespace HandBrake.Interop
{
get
{
- List<Language> languages = new List<Language>();
-
- foreach (string languageCode in LanguageMap.Keys)
- {
- languages.Add(new Language(languageCode));
- }
-
- return languages;
+ return LanguageMap.Keys.Select(languageCode => new Language(languageCode)).ToList();
}
}