This is an automatically generated e-mail. To reply, visit: https://git.reviewboard.kde.org/r/114551/

On December 23rd, 2013, 8:21 a.m. UTC, David Faure wrote:

part/document/katedocument.cpp (Diff revision 1)
bool KateDocument::saveFile()
2190
        backupSuccess = !job->error();
backupSuccess = job->exec(); would be shorter, but yeah, this is equivalent.
I think it's more readable to see immediately that the return value of exec() is checked, rather than looking further down for a check on error() [this applies to the other parts of the patch too].
Thanks for input! I will adjust the places appropriately.

- Michal


On December 21st, 2013, 10:08 p.m. UTC, Michal Humpula wrote:

Review request for Kate and David Faure.
By Michal Humpula.

Updated Dec. 21, 2013, 10:08 p.m.

Repository: kate

Description

KIO::NetAccess made it to kde4support, so this is the patch to port from it.

This is my first touch with KIO, so need someone to recheck if it makes sense. Apps are running ok it seems:)

Diffs

  • kate/app/katesession.cpp (17d8741)
  • kwrite/kwritemain.cpp (fc14fda)
  • part/dialogs/katedialogs.cpp (c536d3d)
  • part/document/katedocument.cpp (286c061)

View Diff