diff options
author | sidchat@google.com <sidchat@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-07 17:41:14 +0000 |
---|---|---|
committer | sidchat@google.com <sidchat@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-07 17:41:14 +0000 |
commit | 1829837c05b277ec0efbdb6ceda25d9fa4ebfd46 (patch) | |
tree | 8f8ed237578fa82cb52dcb54afce6d40d0cae4eb /chrome/browser/spellchecker_mac.mm | |
parent | 700d3d58213d15dea1beb2f7f7122e77e7ea2a47 (diff) | |
download | chromium_src-1829837c05b277ec0efbdb6ceda25d9fa4ebfd46.zip chromium_src-1829837c05b277ec0efbdb6ceda25d9fa4ebfd46.tar.gz chromium_src-1829837c05b277ec0efbdb6ceda25d9fa4ebfd46.tar.bz2 |
Change the use of typedef Language in Spell Check files back to std::string. It is unnecessary, and is conflicting with enum Language definition for compact language detection library.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/150139
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20042 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/spellchecker_mac.mm')
-rw-r--r-- | chrome/browser/spellchecker_mac.mm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/spellchecker_mac.mm b/chrome/browser/spellchecker_mac.mm index 81aa9e3..bcb6db1 100644 --- a/chrome/browser/spellchecker_mac.mm +++ b/chrome/browser/spellchecker_mac.mm @@ -20,7 +20,7 @@ const unsigned int kShortLanguageCodeSize = 2; // A private utility function to convert hunspell language codes to os x // language codes. -NSString* ConvertLanguageCodeToMac(const Language& lang_code) { +NSString* ConvertLanguageCodeToMac(const std::string& lang_code) { NSString* whole_code = base::SysUTF8ToNSString(lang_code); if ([whole_code length] > kShortLanguageCodeSize) { @@ -69,7 +69,7 @@ void Init() { [NSApplication sharedApplication]; } -bool PlatformSupportsLanguage(const Language& current_language) { +bool PlatformSupportsLanguage(const std::string& current_language) { // First, convert Language to an osx lang code NSString. NSString* mac_lang_code = ConvertLanguageCodeToMac(current_language); @@ -82,7 +82,7 @@ bool PlatformSupportsLanguage(const Language& current_language) { return [availableLanguages containsObject:mac_lang_code]; } -void SetLanguage(const Language& lang_to_set) { +void SetLanguage(const std::string& lang_to_set) { NSString* NS_lang_to_set = ConvertLanguageCodeToMac(lang_to_set); [[NSSpellChecker sharedSpellChecker] setLanguage:NS_lang_to_set]; } |