From 802bb823c8e360c8ee84fb400c8bca09023699d4 Mon Sep 17 00:00:00 2001 From: "kin%netscape.com" Date: Wed, 12 May 1999 22:17:41 +0000 Subject: [PATCH] Made read only parameters const. git-svn-id: svn://10.0.0.236/trunk@31294 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/editor/libeditor/txtsvc/nsISpellChecker.h | 10 +++++----- mozilla/editor/txtsvc/public/nsISpellChecker.h | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/mozilla/editor/libeditor/txtsvc/nsISpellChecker.h b/mozilla/editor/libeditor/txtsvc/nsISpellChecker.h index 0438df509f9..11db44ab473 100644 --- a/mozilla/editor/libeditor/txtsvc/nsISpellChecker.h +++ b/mozilla/editor/libeditor/txtsvc/nsISpellChecker.h @@ -62,7 +62,7 @@ public: * suggested replacements for the misspelled word. The array will be empty * if there aren't any suggestions. */ - NS_IMETHOD CheckWord(nsString *aWord, PRBool *aIsMisspelled, nsStringArray *aSuggestions) = 0; + NS_IMETHOD CheckWord(const nsString *aWord, PRBool *aIsMisspelled, nsStringArray *aSuggestions) = 0; /** * Replaces the old word with the specified new word. @@ -72,25 +72,25 @@ public: * word, in the document, with new word when it is true. If * false, it will replace the 1st occurrence only! */ - NS_IMETHOD Replace(nsString *aOldWord, nsString *aNewWord, PRBool aAllOccurrences) = 0; + NS_IMETHOD Replace(const nsString *aOldWord, const nsString *aNewWord, PRBool aAllOccurrences) = 0; /** * Ignores all occurrences of the specified word in the document. * @param aWord is the word to ignore. */ - NS_IMETHOD IgnoreAll(nsString *aWord) = 0; + NS_IMETHOD IgnoreAll(const nsString *aWord) = 0; /** * Add a word to the user's personal dictionary. * @param aWord is the word to add. */ - NS_IMETHOD AddWordToPersonalDictionary(nsString *aWord) = 0; + NS_IMETHOD AddWordToPersonalDictionary(const nsString *aWord) = 0; /** * Remove a word from the user's personal dictionary. * @param aWord is the word to remove. */ - NS_IMETHOD RemoveWordFromPersonalDictionary(nsString *aWord) = 0; + NS_IMETHOD RemoveWordFromPersonalDictionary(const nsString *aWord) = 0; /** * Returns the list of words in the user's personal dictionary. diff --git a/mozilla/editor/txtsvc/public/nsISpellChecker.h b/mozilla/editor/txtsvc/public/nsISpellChecker.h index 0438df509f9..11db44ab473 100644 --- a/mozilla/editor/txtsvc/public/nsISpellChecker.h +++ b/mozilla/editor/txtsvc/public/nsISpellChecker.h @@ -62,7 +62,7 @@ public: * suggested replacements for the misspelled word. The array will be empty * if there aren't any suggestions. */ - NS_IMETHOD CheckWord(nsString *aWord, PRBool *aIsMisspelled, nsStringArray *aSuggestions) = 0; + NS_IMETHOD CheckWord(const nsString *aWord, PRBool *aIsMisspelled, nsStringArray *aSuggestions) = 0; /** * Replaces the old word with the specified new word. @@ -72,25 +72,25 @@ public: * word, in the document, with new word when it is true. If * false, it will replace the 1st occurrence only! */ - NS_IMETHOD Replace(nsString *aOldWord, nsString *aNewWord, PRBool aAllOccurrences) = 0; + NS_IMETHOD Replace(const nsString *aOldWord, const nsString *aNewWord, PRBool aAllOccurrences) = 0; /** * Ignores all occurrences of the specified word in the document. * @param aWord is the word to ignore. */ - NS_IMETHOD IgnoreAll(nsString *aWord) = 0; + NS_IMETHOD IgnoreAll(const nsString *aWord) = 0; /** * Add a word to the user's personal dictionary. * @param aWord is the word to add. */ - NS_IMETHOD AddWordToPersonalDictionary(nsString *aWord) = 0; + NS_IMETHOD AddWordToPersonalDictionary(const nsString *aWord) = 0; /** * Remove a word from the user's personal dictionary. * @param aWord is the word to remove. */ - NS_IMETHOD RemoveWordFromPersonalDictionary(nsString *aWord) = 0; + NS_IMETHOD RemoveWordFromPersonalDictionary(const nsString *aWord) = 0; /** * Returns the list of words in the user's personal dictionary.