mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Fix more issues found by cppcheck.
This commit is contained in:
parent
f4b0c7a1ea
commit
de4c97758a
63 changed files with 261 additions and 268 deletions
|
|
@ -3372,7 +3372,7 @@ void CanvasItemEditor::_draw_selection() {
|
|||
// Draw the resize handles
|
||||
if (tool == TOOL_SELECT && canvas_item->_edit_use_rect() && _is_node_movable(canvas_item)) {
|
||||
Rect2 rect = canvas_item->_edit_get_rect();
|
||||
Vector2 endpoints[4] = {
|
||||
const Vector2 endpoints[4] = {
|
||||
xform.xform(rect.position),
|
||||
xform.xform(rect.position + Vector2(rect.size.x, 0)),
|
||||
xform.xform(rect.position + rect.size),
|
||||
|
|
@ -4575,7 +4575,7 @@ void CanvasItemEditor::_focus_selection(int p_op) {
|
|||
Rect2 rect;
|
||||
int count = 0;
|
||||
|
||||
Map<Node *, Object *> &selection = editor_selection->get_selection();
|
||||
const Map<Node *, Object *> &selection = editor_selection->get_selection();
|
||||
for (const KeyValue<Node *, Object *> &E : selection) {
|
||||
CanvasItem *canvas_item = Object::cast_to<CanvasItem>(E.key);
|
||||
if (!canvas_item) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue