diff --git a/Userland/Applications/PixelPaint/LayerListWidget.cpp b/Userland/Applications/PixelPaint/LayerListWidget.cpp index c569bdf8dc..fe3c987985 100644 --- a/Userland/Applications/PixelPaint/LayerListWidget.cpp +++ b/Userland/Applications/PixelPaint/LayerListWidget.cpp @@ -45,7 +45,7 @@ void LayerListWidget::rebuild_gadgets() m_gadgets.clear(); if (m_image) { for (size_t layer_index = 0; layer_index < m_image->layer_count(); ++layer_index) { - m_gadgets.append({ layer_index, {}, {}, false, {} }); + m_gadgets.append({ layer_index, {}, false, {} }); } } relayout_gadgets(); @@ -208,8 +208,8 @@ void LayerListWidget::image_did_add_layer(size_t layer_index) m_gadgets[m_moving_gadget_index.value()].is_moving = false; m_moving_gadget_index = {}; } - Gadget gadget { layer_index, {}, {}, false, {} }; - m_gadgets.insert(layer_index, move(gadget)); + Gadget gadget { layer_index, {}, false, {} }; + m_gadgets.insert(layer_index, gadget); relayout_gadgets(); } diff --git a/Userland/Applications/PixelPaint/LayerListWidget.h b/Userland/Applications/PixelPaint/LayerListWidget.h index b23806d04c..7364bf2d5f 100644 --- a/Userland/Applications/PixelPaint/LayerListWidget.h +++ b/Userland/Applications/PixelPaint/LayerListWidget.h @@ -52,7 +52,6 @@ private: struct Gadget { size_t layer_index { 0 }; Gfx::IntRect rect; - Gfx::IntRect temporary_rect_during_move; bool is_moving { false }; Gfx::IntPoint movement_delta; };