[Codecs] Remove unneeded const_cast
ClosedPublic

Authored by bruns on Oct 18 2018, 11:20 PM.

Details

Summary

QByteArray accepts a const char* in the constructor, no need to cast
the const away.
Also make it obvious we are using the const overload of data() by
replacing it with constData().

Diff Detail

Repository
R293 Baloo
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
bruns created this revision.Oct 18 2018, 11:20 PM
Restricted Application added projects: Frameworks, Baloo. · View Herald TranscriptOct 18 2018, 11:20 PM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript
bruns requested review of this revision.Oct 18 2018, 11:20 PM
dfaure accepted this revision.Oct 19 2018, 7:25 AM
This revision is now accepted and ready to land.Oct 19 2018, 7:25 AM
This revision was automatically updated to reflect the committed changes.