Skip base64 encoding of QDataStream, avoid temporary QByteArray
ClosedPublic

Authored by bruns on Feb 21 2019, 3:04 PM.

Details

Summary

There is no need to do any Base64 encoding of the data. Also avoid
streaming the data to an intermediate QByteArray, but directly stream
to stdout.

Test Plan

PATH=pwd/bin/:$PATH ctest

Diff Detail

Repository
R824 Baloo Widgets
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.Feb 21 2019, 3:04 PM
Restricted Application added a project: Baloo. · View Herald TranscriptFeb 21 2019, 3:04 PM
bruns requested review of this revision.Feb 21 2019, 3:04 PM

This causes at least one failure in all tests except filemetadatadisplaytest here? the properties are not properly retrieved somehow
and the warning
"Trying to construct an instance of an invalid type, type id: 21123393"
is given.

bruns added a comment.Feb 23 2019, 5:38 PM

This causes at least one failure in all tests except filemetadatadisplaytest here? the properties are not properly retrieved somehow
and the warning
"Trying to construct an instance of an invalid type, type id: 21123393"
is given.

If you don't add the build directory to your path, it uses the extractor from your installation.

Does not really depend on D19268, but avoids errors due to a incomplete PATH

ngraham accepted this revision.Feb 24 2019, 4:20 PM
This revision is now accepted and ready to land.Feb 24 2019, 4:20 PM
This revision was automatically updated to reflect the committed changes.