return nullptr -> return {} for QFlags
ClosedPublic

Authored by mkoller on Dec 4 2017, 6:23 PM.

Details

Summary

Change the irritating nullptr return value to {} for the QImageIOPlugin::Capabilities QFlags

Diff Detail

Repository
R287 KImageFormats
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
mkoller created this revision.Dec 4 2017, 6:23 PM
Restricted Application added a project: Frameworks. · View Herald TranscriptDec 4 2017, 6:23 PM
Restricted Application added a subscriber: Frameworks. · View Herald Transcript
mkoller requested review of this revision.Dec 4 2017, 6:23 PM

Code change looks good to me. Think I missed that in my clean-up commits to @kfunk 's initial commit as I only compiled the library parts of KDE Frameworks, not the plugin modules.

No maintainer of this module though, so just a +1 for now.

Commit message could perhaps be extended to quickly note why the nullptr has been there at all, so future commit history readers get a clue, which they do not from a "irritating" attribution :)

This revision is now accepted and ready to land.Dec 5 2017, 8:23 AM
This revision was automatically updated to reflect the committed changes.