Skip to content

refactor: prefer std::vector rather than std::list - #3737

Open
rodolforg wants to merge 1 commit into
synfig:masterfrom
rodolforg:vector-rather-list-pixelsize
Open

rodolforg wants to merge 1 commit into
synfig:masterfrom
rodolforg:vector-rather-list-pixelsize

Conversation

@rodolforg

Copy link
Copy Markdown
Contributor

No description provided.

@codacy-production

codacy-production Bot commented May 6, 2026

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity · 2 duplication

Metric Results
Complexity 0
Duplication 2

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request refactors the pixel size management by transitioning from std::list to const std::vector and adopting range-based for loops. It also removes the unused duck_changed_connections member. The review identifies two instances where get_pixel_sizes() is called to create an unnecessary copy of the vector; using a constant reference instead would improve efficiency.

Comment thread synfig-studio/src/gui/canvasview.cpp Outdated
Comment thread synfig-studio/src/gui/canvasview.cpp Outdated
@rodolforg
rodolforg force-pushed the vector-rather-list-pixelsize branch from 85b320e to 4cbd41c Compare May 6, 2026 23:15
@rodolforg rodolforg added this to the Proper port to GTK3 milestone May 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant