Bug 1205796 - "Coverity 1323784 indicates a useless passed-by-value argument in nsEditorSpellCheck::TryDictionary". r=smaug

This commit is contained in:
Calixte Denizet 2015-09-22 00:28:00 +02:00
parent adc5c07419
commit 411dc5eec2
2 changed files with 2 additions and 2 deletions

View File

@ -743,7 +743,7 @@ nsEditorSpellCheck::UpdateCurrentDictionary(nsIEditorSpellCheckCallback* aCallba
// Helper function that iterates over the list of dictionaries and sets the one
// that matches based on a given comparison type.
nsresult
nsEditorSpellCheck::TryDictionary(nsAutoString aDictName,
nsEditorSpellCheck::TryDictionary(const nsAString& aDictName,
nsTArray<nsString>& aDictList,
enum dictCompare aCompareType)
{

View File

@ -70,7 +70,7 @@ protected:
bool mUpdateDictionaryRunning;
nsresult TryDictionary(nsAutoString aDictName, nsTArray<nsString>& aDictList,
nsresult TryDictionary(const nsAString& aDictName, nsTArray<nsString>& aDictList,
enum dictCompare aCompareType);
nsresult DictionaryFetched(DictionaryFetcher* aFetchState);