diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-04-01 14:01:14 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-04-01 14:01:14 +0900 |
commit | 62dc885e46838368f5bba3f3e2fd0985dda36af1 (patch) | |
tree | f94c7377d86b2b757e2015f54b36b0e3eba7f5d2 /lib | |
parent | a62bc225b8b4c714e7943aad69d84704a03b8015 (diff) | |
download | libquotient-62dc885e46838368f5bba3f3e2fd0985dda36af1.tar.gz libquotient-62dc885e46838368f5bba3f3e2fd0985dda36af1.zip |
BaseJob: use QDebugStateSaver
...instead of copying the whole QDebug object.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/jobs/basejob.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/jobs/basejob.h b/lib/jobs/basejob.h index ed630a67..252b8ea0 100644 --- a/lib/jobs/basejob.h +++ b/lib/jobs/basejob.h @@ -101,9 +101,9 @@ namespace QMatrixClient bool good() const { return code < ErrorLevel; } friend QDebug operator<<(QDebug dbg, const Status& s) { - QDebug(dbg).noquote().nospace() + QDebugStateSaver _s(dbg); + return dbg.noquote().nospace() << s.code << ": " << s.message; - return dbg; } int code; |