Kaydet (Commit) 7423629f authored tarafından Caolán McNamara's avatar Caolán McNamara

cppcheck: oppositeInnerCondition if new fails, its going to throw

not return nullptr

Change-Id: I8f46e49b28fd9547fb3e32dca0c6b99ee2cd5c7d
üst a2effff0
...@@ -334,9 +334,7 @@ sal_Int16 SpellChecker::GetSpellFailure( const OUString &rWord, const Locale &rL ...@@ -334,9 +334,7 @@ sal_Int16 SpellChecker::GetSpellFailure( const OUString &rWord, const Locale &rL
#endif #endif
aDicts[i] = new Hunspell(aTmpaff.getStr(),aTmpdict.getStr()); aDicts[i] = new Hunspell(aTmpaff.getStr(),aTmpdict.getStr());
aDEncs[i] = RTL_TEXTENCODING_DONTKNOW; aDEncs[i] = getTextEncodingFromCharset(aDicts[i]->get_dic_encoding());
if (aDicts[i])
aDEncs[i] = getTextEncodingFromCharset(aDicts[i]->get_dic_encoding());
} }
pMS = aDicts[i]; pMS = aDicts[i];
eEnc = aDEncs[i]; eEnc = aDEncs[i];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment