Closed Bug 1424677 Opened 6 years ago Closed 6 years ago

Don't use wstring for nsIEditorSpellCheck

Categories

(Core :: DOM: Editor, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla59
Tracking Status
firefox59 --- fixed

People

(Reporter: m_kato, Assigned: m_kato)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

No reason to use wstring.
Assignee: nobody → m_kato
Comment on attachment 8936549 [details]
Bug 1424677 - Don't use wstring for nsIEditorSpellCheck.

https://reviewboard.mozilla.org/r/207282/#review213098

Really nice! I guess that this patch reduces redundant allocation.

::: editor/composer/nsEditorSpellCheck.cpp:477
(Diff revision 1)
> -nsEditorSpellCheck::CheckCurrentWord(const char16_t *aSuggestedWord,
> +nsEditorSpellCheck::CheckCurrentWord(const nsAString& aSuggestedWord,
>                                       bool *aIsMisspelled)

When you touch an argument whose coding style is odd, I'd like you to clean up other arguments too. However, it's not your fault, so, keeping current style for the bool* argument is okay.

::: editor/composer/nsEditorSpellCheck.cpp:488
(Diff revision 1)
> -nsEditorSpellCheck::CheckCurrentWordNoSuggest(const char16_t *aSuggestedWord,
> +nsEditorSpellCheck::CheckCurrentWordNoSuggest(const nsAString& aSuggestedWord,
>                                                bool *aIsMisspelled)

ditto.
Attachment #8936549 - Flags: review?(masayuki) → review+
Pushed by m_kato@ga2.so-net.ne.jp:
https://hg.mozilla.org/integration/autoland/rev/c6f95d6e7520
Don't use wstring for nsIEditorSpellCheck. r=masayuki
https://hg.mozilla.org/mozilla-central/rev/c6f95d6e7520
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla59
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: