From 48f19e925b9af6fb0b22c8bd6c34a4778fe280a8 Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Wed, 24 Sep 2014 12:49:32 +0200 Subject: Use Q_DECL_OVERRIDE instead of QTC_OVERRIDE This patch removes src/libs/utils/qtcoverride.h and uses Q_DECL_OVERRIDE from Qt 5 instead. Change-Id: I61ffa539648ffe996dc061eec7708c04580c0f09 Reviewed-by: Eike Ziller Reviewed-by: Fawzi Mohamed --- src/plugins/cpptools/cppcompletionassist.cpp | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'src/plugins/cpptools/cppcompletionassist.cpp') diff --git a/src/plugins/cpptools/cppcompletionassist.cpp b/src/plugins/cpptools/cppcompletionassist.cpp index 703a3aaff5..59cac54c10 100644 --- a/src/plugins/cpptools/cppcompletionassist.cpp +++ b/src/plugins/cpptools/cppcompletionassist.cpp @@ -49,7 +49,6 @@ #include #include -#include #include #include @@ -90,8 +89,8 @@ public: CppAssistProposalItem() : m_isOverloaded(false) {} - bool prematurelyApplies(const QChar &c) const QTC_OVERRIDE; - void applyContextualContent(BaseTextEditorWidget *editorWidget, int basePosition) const QTC_OVERRIDE; + bool prematurelyApplies(const QChar &c) const Q_DECL_OVERRIDE; + void applyContextualContent(BaseTextEditorWidget *editorWidget, int basePosition) const Q_DECL_OVERRIDE; bool isOverloaded() const { return m_isOverloaded; } void markAsOverloaded() { m_isOverloaded = true; } @@ -350,10 +349,10 @@ public: , m_typeOfExpression(typeOfExp) {} - void reset() QTC_OVERRIDE {} - int size() const QTC_OVERRIDE { return m_functionSymbols.size(); } - QString text(int index) const QTC_OVERRIDE; - int activeArgument(const QString &prefix) const QTC_OVERRIDE; + void reset() Q_DECL_OVERRIDE {} + int size() const Q_DECL_OVERRIDE { return m_functionSymbols.size(); } + QString text(int index) const Q_DECL_OVERRIDE; + int activeArgument(const QString &prefix) const Q_DECL_OVERRIDE; private: QList m_functionSymbols; @@ -439,8 +438,8 @@ public: , m_replaceDotForArrow(static_cast(model)->m_replaceDotForArrow) {} - bool isCorrective() const QTC_OVERRIDE { return m_replaceDotForArrow; } - void makeCorrection(BaseTextEditorWidget *editorWidget) QTC_OVERRIDE; + bool isCorrective() const Q_DECL_OVERRIDE { return m_replaceDotForArrow; } + void makeCorrection(BaseTextEditorWidget *editorWidget) Q_DECL_OVERRIDE; private: bool m_replaceDotForArrow; -- cgit v1.2.1