Fix QSqlQuery warnings
ClosedPublic

Authored by carewolf on Mar 12 2018, 10:44 PM.

Details

Summary

A default constructed QSqlQuery is not a passive null-value but a
query prepared for the default database which may not be allowed
in the current thread. Instead try connecting to the akonadi default
database.

BUG: 391783

Diff Detail

Repository
R165 Akonadi
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
carewolf created this revision.Mar 12 2018, 10:44 PM
Restricted Application added a project: KDE PIM. · View Herald TranscriptMar 12 2018, 10:44 PM
Restricted Application added a subscriber: KDE PIM. · View Herald Transcript
carewolf requested review of this revision.Mar 12 2018, 10:44 PM
dvratil accepted this revision.Mar 13 2018, 7:18 AM
dvratil added a subscriber: dvratil.

Awesome, thank you!

This revision is now accepted and ready to land.Mar 13 2018, 7:18 AM
This revision was automatically updated to reflect the committed changes.