Commit b58c147c authored by Leandro Melo's avatar Leandro Melo
Browse files

Rename a method for clarity.

parent 878bb9f9
...@@ -168,7 +168,7 @@ CppTypeHierarchyWidget::~CppTypeHierarchyWidget() ...@@ -168,7 +168,7 @@ CppTypeHierarchyWidget::~CppTypeHierarchyWidget()
delete m_delegate; delete m_delegate;
} }
bool CppTypeHierarchyWidget::handleReplacement(Core::IEditor *editor) bool CppTypeHierarchyWidget::handleEditorChange(Core::IEditor *editor)
{ {
if (CPPEditorEditable *cppEditable = qobject_cast<CPPEditorEditable *>(editor)) { if (CPPEditorEditable *cppEditable = qobject_cast<CPPEditorEditable *>(editor)) {
if (m_cppEditor) { if (m_cppEditor) {
...@@ -241,7 +241,7 @@ CppTypeHierarchyStackedWidget::~CppTypeHierarchyStackedWidget() ...@@ -241,7 +241,7 @@ CppTypeHierarchyStackedWidget::~CppTypeHierarchyStackedWidget()
void CppTypeHierarchyStackedWidget::editorChanged(Core::IEditor *editor) void CppTypeHierarchyStackedWidget::editorChanged(Core::IEditor *editor)
{ {
if (!m_typeHiearchyWidgetInstance->handleReplacement(editor)) { if (!m_typeHiearchyWidgetInstance->handleEditorChange(editor)) {
CppTypeHierarchyWidget *replacement = new CppTypeHierarchyWidget(editor); CppTypeHierarchyWidget *replacement = new CppTypeHierarchyWidget(editor);
removeWidget(m_typeHiearchyWidgetInstance); removeWidget(m_typeHiearchyWidgetInstance);
m_typeHiearchyWidgetInstance->deleteLater(); m_typeHiearchyWidgetInstance->deleteLater();
......
...@@ -92,7 +92,7 @@ public: ...@@ -92,7 +92,7 @@ public:
CppTypeHierarchyWidget(Core::IEditor *editor); CppTypeHierarchyWidget(Core::IEditor *editor);
virtual ~CppTypeHierarchyWidget(); virtual ~CppTypeHierarchyWidget();
bool handleReplacement(Core::IEditor *editor); bool handleEditorChange(Core::IEditor *editor);
public slots: public slots:
void perform(); void perform();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment