bool TextCheckingHelper::markAllMisspellings() { // Use the "markAll" feature of findFirstMisspelling. Ignore the return value and the "out parameter"; // all we need to do is mark every instance. int ignoredOffset; return findFirstMisspelling(ignoredOffset, true).isEmpty(); }
void TextCheckingHelper::markAllMisspellings(RefPtr<Range>& firstMisspellingRange) { // Use the "markAll" feature of findFirstMisspelling. Ignore the return value and the "out parameter"; // all we need to do is mark every instance. int ignoredOffset; findFirstMisspelling(ignoredOffset, true, firstMisspellingRange); }