Eliminate interior mutability in get_selected_node_list.

This commit is contained in:
Yyf2333
2025-02-01 20:29:40 +08:00
committed by Yufeng Ying
parent 701505eb4f
commit df80265d3a
4 changed files with 26 additions and 26 deletions

View File

@ -318,7 +318,7 @@ public:
TypedArray<Node> get_selected_nodes();
// Returns only the top level selected nodes.
// That is, if the selection includes some node and a child of that node, only the parent is returned.
List<Node *> &get_selected_node_list();
const List<Node *> &get_selected_node_list();
// Returns all the selected nodes (list version of "get_selected_nodes").
List<Node *> get_full_selected_node_list();
// Returns the map of selected objects and their metadata.