Better name for method to pick the completion collector

isValid -> supportsEditor
This commit is contained in:
Thorbjørn Lindeijer
2009-04-07 15:56:02 +02:00
parent 607f622cd5
commit 6d0f973f75
7 changed files with 7 additions and 10 deletions

View File

@@ -508,14 +508,11 @@ static int startOfOperator(TextEditor::ITextEditable *editor,
return start;
}
bool CppCodeCompletion::isValid(TextEditor::ITextEditable *editor)
bool CppCodeCompletion::supportsEditor(TextEditor::ITextEditable *editor)
{ return m_manager->isCppEditor(editor); }
bool CppCodeCompletion::triggersCompletion(TextEditor::ITextEditable *editor)
{
if (! m_manager->isCppEditor(editor)) // ### remove me
return false;
const int pos = editor->position();
if (startOfOperator(editor, pos, /*token =*/ 0,
/*want function call=*/ true) != pos)