зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1278452 - Fix a typo in mozEnglishWordUtils::GetLanguage. r=ehsan.
|aLanguage| must be dereferenced when checked. --HG-- extra : rebase_source : 8e5125c2eb99d66f731d58590a377b8238a81e70
This commit is contained in:
Родитель
642d2ef877
Коммит
ba949d4617
|
@ -38,13 +38,14 @@ mozEnglishWordUtils::~mozEnglishWordUtils()
|
|||
|
||||
NS_IMETHODIMP mozEnglishWordUtils::GetLanguage(char16_t * *aLanguage)
|
||||
{
|
||||
nsresult rv = NS_OK;
|
||||
NS_ENSURE_ARG_POINTER(aLanguage);
|
||||
|
||||
*aLanguage = ToNewUnicode(mLanguage);
|
||||
if(!aLanguage) rv = NS_ERROR_OUT_OF_MEMORY;
|
||||
return rv;
|
||||
}
|
||||
if (!*aLanguage) {
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
// return the possible root forms of aWord.
|
||||
NS_IMETHODIMP mozEnglishWordUtils::GetRootForm(const char16_t *aWord, uint32_t type, char16_t ***words, uint32_t *count)
|
||||
|
|
Загрузка…
Ссылка в новой задаче