From 6dd0e79d096381e2498f9e56a804778bb54f14b1 Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Thu, 4 Jun 2015 15:54:10 +0200 Subject: Add override to IDocument hierarchy Change-Id: I6884f59fe0f06e380254c1f8076dd561d9df4ee3 Reviewed-by: Tobias Hunger --- src/plugins/texteditor/textdocument.h | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) (limited to 'src/plugins/texteditor/textdocument.h') diff --git a/src/plugins/texteditor/textdocument.h b/src/plugins/texteditor/textdocument.h index 0897a6823b..8bb462c035 100644 --- a/src/plugins/texteditor/textdocument.h +++ b/src/plugins/texteditor/textdocument.h @@ -66,7 +66,7 @@ class TEXTEDITOR_EXPORT TextDocument : public Core::BaseTextDocument public: explicit TextDocument(Core::Id id = Core::Id()); - virtual ~TextDocument(); + ~TextDocument() override; static QMap openedTextDocumentContents(); static QMap openedTextDocumentEncodings(); @@ -101,23 +101,24 @@ public: void removeMarkFromMarksCache(TextMark *mark); // IDocument implementation. - bool save(QString *errorString, const QString &fileName, bool autoSave); - bool setContents(const QByteArray &contents); - bool shouldAutoSave() const; - bool isFileReadOnly() const; - bool isModified() const; - bool isSaveAsAllowed() const; - void checkPermissions(); - bool reload(QString *errorString, ReloadFlag flag, ChangeType type); - void setFilePath(const Utils::FileName &newName); - - QString defaultPath() const; - QString suggestedFileName() const; + bool save(QString *errorString, const QString &fileName, bool autoSave) override; + bool setContents(const QByteArray &contents) override; + bool shouldAutoSave() const override; + bool isFileReadOnly() const override; + bool isModified() const override; + bool isSaveAsAllowed() const override; + void checkPermissions() override; + bool reload(QString *errorString, ReloadFlag flag, ChangeType type) override; + void setFilePath(const Utils::FileName &newName) override; + + QString defaultPath() const override; + QString suggestedFileName() const override; void setDefaultPath(const QString &defaultPath); void setSuggestedFileName(const QString &suggestedFileName); - OpenResult open(QString *errorString, const QString &fileName, const QString &realFileName); + OpenResult open(QString *errorString, const QString &fileName, + const QString &realFileName) override; virtual bool reload(QString *errorString); bool setPlainText(const QString &text); -- cgit v1.2.1