Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
Renamed variable.
Emmet O'Neillbd0a2ffa95c1
diff --git a/libs/ui/kis_selection_actions_panel.cpp b/libs/ui/kis_selection_actions_panel.cppindex c1002d4833..44d2be6dae 100644--- a/libs/ui/kis_selection_actions_panel.cpp+++ b/libs/ui/kis_selection_actions_panel.cpp@@ -240,18 +240,18 @@ void KisSelectionActionsPanel::drawActionBarBackground(QPainter &painter)dragHandlePath.addRect(dragHandleRect);painter.fillPath(dragHandlePath, BACKGROUND_COLOR);- const std::list<std::pair<int, int>> offsets = {{0, 0},- {DOT_SPACING, 0},- {-DOT_SPACING, 0},- {0, DOT_SPACING},- {0, -DOT_SPACING},- {DOT_SPACING, DOT_SPACING},- {DOT_SPACING, -DOT_SPACING},- {-DOT_SPACING, DOT_SPACING},- {-DOT_SPACING, -DOT_SPACING}};+ const std::list<std::pair<int, int>> DOT_OFFSETS = {{0, 0},+ {DOT_SPACING, 0},+ {-DOT_SPACING, 0},+ {0, DOT_SPACING},+ {0, -DOT_SPACING},+ {DOT_SPACING, DOT_SPACING},+ {DOT_SPACING, -DOT_SPACING},+ {-DOT_SPACING, DOT_SPACING},+ {-DOT_SPACING, -DOT_SPACING}};QPainterPath dragHandleRectDots;- for (const std::pair<int, int> &offset : offsets) {+ for (const std::pair<int, int> &offset : DOT_OFFSETS) {dragHandleRectDots.addEllipse(offset.first, offset.second, DOT_SIZE, DOT_SIZE);};