From 62dc885e46838368f5bba3f3e2fd0985dda36af1 Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Sun, 1 Apr 2018 14:01:14 +0900 Subject: BaseJob: use QDebugStateSaver ...instead of copying the whole QDebug object. --- lib/jobs/basejob.h | 4 ++-- 1 file 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; -- cgit v1.2.3