Review Request 125974: Make KTar KCompressionDevice-friendly
David Faure
faure at kde.org
Sat Nov 7 09:23:34 UTC 2015
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/125974/#review88125
-----------------------------------------------------------
src/ktar.cpp (line 480)
<https://git.reviewboard.kde.org/r/125974/#comment60446>
Variable-size C-arrays are non-standard in C++ (at least before C++11, dunno about C++11). You have to use malloc or new or QVarLengthArray.
- David Faure
On Nov. 6, 2015, 2:52 a.m., Romário Rios wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/125974/
> -----------------------------------------------------------
>
> (Updated Nov. 6, 2015, 2:52 a.m.)
>
>
> Review request for KDE Frameworks and Aleix Pol Gonzalez.
>
>
> Repository: karchive
>
>
> Description
> -------
>
> Up until now, since at least 5.12, decompressing some data coming directly from a QIODevice by using KCompressionDevice because this is a sequential device, and KTar and KArchive used to use QIODevice::seek and pos and some places, which made the decompression fail. This patch makes KTar sequential-friendly by replacing the calls to seek and pos with read and a simple counter, respectively.
>
>
> Diffs
> -----
>
> src/karchive.cpp 0ece37c
> src/ktar.cpp 824395e
>
> Diff: https://git.reviewboard.kde.org/r/125974/diff/
>
>
> Testing
> -------
>
> Makes the tests from review #125941 pass
>
>
> Thanks,
>
> Romário Rios
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20151107/53717373/attachment.html>
More information about the Kde-frameworks-devel
mailing list