From c997e5e54c5db30b94f76a012984cc9fda250744 Mon Sep 17 00:00:00 2001 From: Nikolai Kosjar Date: Wed, 27 Jan 2016 12:51:07 +0100 Subject: [PATCH] CppEditor: Clean up CppHoverHandler Change-Id: I1ac54206ca2735c55c1468ddd4ab5f3106665f16 Reviewed-by: Marco Bubke Reviewed-by: Alessandro Portale --- src/plugins/cppeditor/cpphoverhandler.cpp | 3 --- src/plugins/cppeditor/cpphoverhandler.h | 7 ++----- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/plugins/cppeditor/cpphoverhandler.cpp b/src/plugins/cppeditor/cpphoverhandler.cpp index ce916614170..8cbe8d08913 100644 --- a/src/plugins/cppeditor/cpphoverhandler.cpp +++ b/src/plugins/cppeditor/cpphoverhandler.cpp @@ -42,9 +42,6 @@ using namespace TextEditor; namespace CppEditor { namespace Internal { -CppHoverHandler::CppHoverHandler() -{} - void CppHoverHandler::identifyMatch(TextEditorWidget *editorWidget, int pos) { if (!editorWidget->extraSelectionTooltip(pos).isEmpty()) { diff --git a/src/plugins/cppeditor/cpphoverhandler.h b/src/plugins/cppeditor/cpphoverhandler.h index a23d11e1e79..eeda39a93d1 100644 --- a/src/plugins/cppeditor/cpphoverhandler.h +++ b/src/plugins/cppeditor/cpphoverhandler.h @@ -33,12 +33,9 @@ namespace Internal { class CppHoverHandler : public TextEditor::BaseHoverHandler { -public: - CppHoverHandler(); - private: - virtual void identifyMatch(TextEditor::TextEditorWidget *editorWidget, int pos); - virtual void decorateToolTip(); + void identifyMatch(TextEditor::TextEditorWidget *editorWidget, int pos) override; + void decorateToolTip() override; }; } // namespace Internal