diff options
Diffstat (limited to 'win/CS/HandBrake.Interop/HandBrakeInterop/LanguageCodes.cs')
-rw-r--r-- | win/CS/HandBrake.Interop/HandBrakeInterop/LanguageCodes.cs | 10 |
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();
}
}
|