~neon/kolourpaint/master

Viewing all changes in revision 2071.

  • Committer: David Faure
  • Date: 2019-11-27 21:56:45 UTC
  • Revision ID: git-v1:d6ef2fb8740ddc00bf676fa13f8820cbd5b98d15
Porting away from NetAccess, step 1: code refactoring

Summary:
* Split out the NetAccess::exists call from isFromExistingURL(bool),
only one caller was passing true (the default value). Simpler to
remove that bool and call both methods in that one location.

* Provide a urlExists() method to wrap the calls to NetAccess::exists
and call it from as many places as possible.

Test Plan:
Builds, I can open and save a file, but it would take time to figure
out how to trigger all the changed code paths.

Reviewers: broulik, vkrause

Reviewed By: vkrause

Maniphest Tasks: T11576

Differential Revision: https://phabricator.kde.org/D25468

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: