Fix compile with QT_NO_CAST_FROM_ASCII
ClosedPublic

Authored by mlaurent on Nov 29 2017, 5:34 AM.

Details

Diff Detail

Repository
R309 KService
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
mlaurent created this revision.Nov 29 2017, 5:34 AM
Restricted Application added a project: Frameworks. · View Herald TranscriptNov 29 2017, 5:34 AM
Restricted Application added a subscriber: Frameworks. · View Herald Transcript
mlaurent requested review of this revision.Nov 29 2017, 5:34 AM
dfaure requested changes to this revision.Nov 29 2017, 6:41 AM
dfaure added inline comments.
src/sycoca/kbuildservicegroupfactory.cpp
84

Use QLatin1String for comparisons

src/sycoca/kbuildsycoca.cpp
248

fromLatin1 would do, it's ascii strings like "services" etc.

302

same

src/sycoca/kmimeassociations.cpp
110

startsWith() has a QLatin1String overload

This revision now requires changes to proceed.Nov 29 2017, 6:41 AM
mlaurent added inline comments.Nov 29 2017, 7:08 AM
src/sycoca/kbuildsycoca.cpp
248

Yep I was not sure about this one.
It confirms that this one was incorrect.
I will fix all soon.

mlaurent updated this revision to Diff 23114.Nov 29 2017, 7:15 AM
mlaurent marked 4 inline comments as done.
  • Fix error found by David
dfaure accepted this revision.Nov 30 2017, 6:20 AM
This revision is now accepted and ready to land.Nov 30 2017, 6:20 AM
This revision was automatically updated to reflect the committed changes.