summaryrefslogtreecommitdiff
path: root/Source/WebCore/dom/RawDataDocumentParser.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/dom/RawDataDocumentParser.h')
-rw-r--r--Source/WebCore/dom/RawDataDocumentParser.h15
1 files changed, 6 insertions, 9 deletions
diff --git a/Source/WebCore/dom/RawDataDocumentParser.h b/Source/WebCore/dom/RawDataDocumentParser.h
index d62d18042..094ec87f6 100644
--- a/Source/WebCore/dom/RawDataDocumentParser.h
+++ b/Source/WebCore/dom/RawDataDocumentParser.h
@@ -23,8 +23,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef RawDataDocumentParser_h
-#define RawDataDocumentParser_h
+#pragma once
#include "DocumentParser.h"
@@ -37,31 +36,29 @@ protected:
{
}
- virtual void finish()
+ void finish() override
{
if (!isStopped())
document()->finishedParsing();
}
private:
- virtual void flush(DocumentWriter& writer)
+ void flush(DocumentWriter& writer) override
{
// Make sure appendBytes is called at least once.
appendBytes(writer, 0, 0);
}
- virtual void insert(const SegmentedString&)
+ void insert(SegmentedString&&) override
{
// <https://bugs.webkit.org/show_bug.cgi?id=25397>: JS code can always call document.write, we need to handle it.
ASSERT_NOT_REACHED();
}
- virtual void append(PassRefPtr<StringImpl>)
+ void append(RefPtr<StringImpl>&&) override
{
ASSERT_NOT_REACHED();
}
};
-};
-
-#endif // RawDataDocumentParser_h
+} // namespace WebCore