Closed
Bug 1424677
Opened 6 years ago
Closed 6 years ago
Don't use wstring for nsIEditorSpellCheck
Categories
(Core :: DOM: Editor, enhancement, P3)
Core
DOM: Editor
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 | ||
Updated•6 years ago
|
Assignee: nobody → m_kato
Assignee | ||
Comment 1•6 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=113608683218bdadc2da2a901639c102e115a3d0
Comment hidden (mozreview-request) |
Comment 3•6 years ago
|
||
mozreview-review |
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
Comment 5•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/c6f95d6e7520
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla59
Updated•4 years ago
|
Blocks: redesign-editor-scriptable-API
You need to log in
before you can comment on or make changes to this bug.
Description
•