Get rid of easily removable uses of const_cast
This commit is contained in:
@ -957,7 +957,7 @@ void EditorHelpSearch::Runner::_match_method_name_and_push_back(Vector<DocData::
|
||||
(term.begins_with(".") && method_name.begins_with(term.substr(1))) ||
|
||||
(term.ends_with("(") && method_name.ends_with(term.left(term.length() - 1).strip_edges())) ||
|
||||
(term.begins_with(".") && term.ends_with("(") && method_name == term.substr(1, term.length() - 2).strip_edges())) {
|
||||
method.doc = const_cast<DocData::MethodDoc *>(&p_methods[i]);
|
||||
method.doc = &p_methods[i];
|
||||
r_match_methods->push_back(method);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user