D16276: libzipplugin: Simplify registration of progress callbacks

Alexander Volkov noreply at phabricator.kde.org
Wed Oct 17 16:33:48 BST 2018


volkov created this revision.
Herald added subscribers: Ark, kde-utils-devel.
Herald added a project: Ark.
volkov requested review of this revision.

REVISION SUMMARY
  Use zip_register_progress_callback_with_state() that was
  introduced in libzip 1.3 (we already require this version).
  
  Pass 0.001 as precision because this value is used for
  old zip_register_progress_callback() inside libzip.
  Also pass nullptr as a free function, because 'this' doesn't
  need to be freed.

REPOSITORY
  R36 Ark

BRANCH
  master

REVISION DETAIL
  https://phabricator.kde.org/D16276

AFFECTED FILES
  plugins/libzipplugin/libzipplugin.cpp
  plugins/libzipplugin/libzipplugin.h

To: volkov
Cc: kde-utils-devel, #ark, tctara
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-utils-devel/attachments/20181017/7ab07daa/attachment.html>


More information about the Kde-utils-devel mailing list