Skip to content

Commit

Permalink
Favor std::sort over qSort
Browse files Browse the repository at this point in the history
  • Loading branch information
YakoYakoYokuYoku committed Dec 6, 2021
1 parent 6083911 commit 654fb40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Gui/ToolButton.cpp
Expand Up @@ -216,7 +216,7 @@ ToolButton::sortChildren()
}
assert(_imp->_menu);
QList<QAction*> actions = _imp->_menu->actions();
qSort( actions.begin(), actions.end(), ToolButtonChildrenSortFunctor() );
std::sort( actions.begin(), actions.end(), ToolButtonChildrenSortFunctor() );
_imp->_menu->clear();

std::vector<ToolButton*> sortedChildren;
Expand Down

0 comments on commit 654fb40

Please sign in to comment.