BUG: 362988
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
No Linters Available |
No Unit Test Coverage |
Buildable 3174 | |
Build 3192: arc lint + arc unit |
I think we should change the signature of toKIOError to KIO::Error (int) const. 0 Is not a valid KIO::Error to begin with, so, asserting that the error is in fact not an invalid error seems like something the compiler could just do for us if we stopped treating the error as an int until we finally emit it via error().
That being said, the assert is fine in lieu of changing toKIOError.
I dislike the indentation variance of the base diff D15655 though.