diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-10-28 12:43:40 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-10-28 15:06:34 +0000 |
commit | f338acb77c2823d5c1eb0499aa2b150a7b453ed6 (patch) | |
tree | af2714113de1465cfae3445affdce2ec8a90a973 /editeng | |
parent | 459e080067370f1ddda55cdf43e13d9e1cf551fe (diff) |
coverity#735305 Unchecked return value
Change-Id: I0f03b67a5df3427e78f70f2b86aba26024ea575f
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/misc/svxacorr.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx index 79d5c39dd834..fc173d57f4fe 100644 --- a/editeng/source/misc/svxacorr.cxx +++ b/editeng/source/misc/svxacorr.cxx @@ -1422,8 +1422,8 @@ SvxAutoCorrectLanguageLists& SvxAutoCorrect::_GetLanguageList( LanguageType eLang ) { LanguageTag aLanguageTag( eLang); - if(pLangTable->find(aLanguageTag) == pLangTable->end()) - CreateLanguageFile(aLanguageTag, true); + if (pLangTable->find(aLanguageTag) == pLangTable->end()) + (void)CreateLanguageFile(aLanguageTag, true); return *(pLangTable->find(aLanguageTag)->second); } @@ -1453,7 +1453,7 @@ void SvxAutoCorrect::SaveWrdSttExceptList(LanguageType eLang) #endif } - // Adds a single word. The list will immediately be written to the file! +// Adds a single word. The list will immediately be written to the file! bool SvxAutoCorrect::AddCplSttException( const OUString& rNew, LanguageType eLang ) { @@ -1472,7 +1472,7 @@ bool SvxAutoCorrect::AddCplSttException( const OUString& rNew, pLists = pLangTable->find(aLangTagUndetermined)->second; } OSL_ENSURE(pLists, "No auto correction data"); - return pLists->AddToCplSttExceptList(rNew); + return pLists ? pLists->AddToCplSttExceptList(rNew) : false; } // Adds a single word. The list will immediately be written to the file! @@ -1494,7 +1494,7 @@ bool SvxAutoCorrect::AddWrtSttException( const OUString& rNew, pLists = pLangTable->find(aLangTagUndetermined)->second; } OSL_ENSURE(pLists, "No auto correction file!"); - return pLists->AddToWrdSttExceptList(rNew); + return pLists ? pLists->AddToWrdSttExceptList(rNew) : false; } bool SvxAutoCorrect::GetPrevAutoCorrWord( SvxAutoCorrDoc& rDoc, |