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()
delete m_delegate;
}
bool CppTypeHierarchyWidget::handleReplacement(Core::IEditor *editor)
bool CppTypeHierarchyWidget::handleEditorChange(Core::IEditor *editor)
{
if (CPPEditorEditable *cppEditable = qobject_cast<CPPEditorEditable *>(editor)) {
if (m_cppEditor) {
......@@ -241,7 +241,7 @@ CppTypeHierarchyStackedWidget::~CppTypeHierarchyStackedWidget()
void CppTypeHierarchyStackedWidget::editorChanged(Core::IEditor *editor)
{
if (!m_typeHiearchyWidgetInstance->handleReplacement(editor)) {
if (!m_typeHiearchyWidgetInstance->handleEditorChange(editor)) {
CppTypeHierarchyWidget *replacement = new CppTypeHierarchyWidget(editor);
removeWidget(m_typeHiearchyWidgetInstance);
m_typeHiearchyWidgetInstance->deleteLater();
......
......@@ -92,7 +92,7 @@ public:
CppTypeHierarchyWidget(Core::IEditor *editor);
virtual ~CppTypeHierarchyWidget();
bool handleReplacement(Core::IEditor *editor);
bool handleEditorChange(Core::IEditor *editor);
public slots:
void perform();
......
Markdown is supported
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