Skip to content

C++ modernizations#386

Open
leplatrem wants to merge 12 commits intomainfrom
cpp-modernizations
Open

C++ modernizations#386
leplatrem wants to merge 12 commits intomainfrom
cpp-modernizations

Conversation

@leplatrem
Copy link
Collaborator

No description provided.

QString::arg() replaces %1 first, so using %2 with a single argument
triggered a Qt warning. Works by accident (Qt falls back to lowest
available placeholder) but is incorrect.
…lable

qBound(0, x, -1) returns 0 when nbScreens is 0, then screens.at(0) crashes
on the empty list. Early return when no screens are detected.
delete nullptr is a no-op in C++, so the null check is unnecessary.
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