This is used in several places in KDE PIM via string-based access.
So let's upstream this too and give it a proper API, along the lines
of how this is done for Address or PhoneNumber.
Details
Details
- Reviewers
dvratil - Commits
- R174:3fff0c787781: Add email type and preference API
Diff Detail
Diff Detail
- Repository
- R174 KContacts
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
src/email.cpp | ||
---|---|---|
151 | std::none_of instead of std::find_if == end? |
Comment Actions
Simplify flag decoding a bit.
std::any/none_of doesn't work here, as we use the iterator for then checking against std::end.