Fix deprecation warning for KRun::runUrl()
ClosedPublic

Authored by rthomsen on Feb 20 2017, 8:48 PM.

Details

Summary

KIO 5.31 added a new KRun::runUrl() and set deprecation warnings on the old one.

KF min version is simultaneously bumped to 5.31.

Diff Detail

Repository
R36 Ark
Lint
Lint Skipped
Unit
Unit Tests Skipped
rthomsen created this revision.Feb 20 2017, 8:48 PM
Restricted Application added subscribers: Ark, kde-utils-devel. · View Herald TranscriptFeb 20 2017, 8:48 PM
elvisangelaccio requested changes to this revision.Feb 20 2017, 9:06 PM
elvisangelaccio added inline comments.
app/batchextract.cpp
173

You can remove the last two arguments, they already take a default value

part/part.cpp
1035

Use KRun::RunFlags() rather than 0. And same as above, you can drop the last 2 arguments

1265

Same here, QString() and QByteArray not necessary

This revision now requires changes to proceed.Feb 20 2017, 9:06 PM
rthomsen updated this revision to Diff 11602.Feb 21 2017, 7:15 PM
rthomsen edited edge metadata.

Use KRun::RunFlags() as fourth argument.

rthomsen marked an inline comment as done.Feb 21 2017, 7:17 PM
rthomsen added inline comments.
app/batchextract.cpp
173

If they are removed the old overload will be used and the deprecation warning emitted.

part/part.cpp
1265

Same as above.

elvisangelaccio accepted this revision.Feb 21 2017, 8:14 PM
elvisangelaccio added inline comments.
app/batchextract.cpp
173

hmm right, it would need the extended KRun::RunFlags(KRun::RunExecutables) version, which is no longer less verbose... Ok, forget it then.

This revision is now accepted and ready to land.Feb 21 2017, 8:14 PM
This revision was automatically updated to reflect the committed changes.