- Reserve m_roleIds
- Avoid double lookup contains+value but use default value argument
- Constify
Details
Details
- Reviewers
mwolff - Group Reviewers
Plasma - Commits
- R242:3ebdd64e6bbd: Optimize SortFilterModel role names
I don't get why in syncRoleNames we populate m_roleIds from roleNames() but then set roles to sourceModel()->roleNames().
This class is not exported but only part of the corebindingsplugin so this method can be constified
Diff Detail
Diff Detail
- Repository
- R242 Plasma Framework (Library)
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.