diff options
Diffstat (limited to 'lib/logging.h')
-rw-r--r-- | lib/logging.h | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/lib/logging.h b/lib/logging.h index a3a65887..06603322 100644 --- a/lib/logging.h +++ b/lib/logging.h @@ -13,7 +13,7 @@ * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #pragma once @@ -28,8 +28,7 @@ Q_DECLARE_LOGGING_CATEGORY(EPHEMERAL) Q_DECLARE_LOGGING_CATEGORY(JOBS) Q_DECLARE_LOGGING_CATEGORY(SYNCJOB) -namespace QMatrixClient -{ +namespace QMatrixClient { // QDebug manipulators using QDebugManip = QDebug (*)(QDebug); @@ -47,9 +46,9 @@ namespace QMatrixClient inline QDebug formatJson(QDebug debug_object) { #if QT_VERSION < QT_VERSION_CHECK(5, 4, 0) - return debug_object; + return debug_object; #else - return debug_object.noquote(); + return debug_object.noquote(); #endif } @@ -61,7 +60,7 @@ namespace QMatrixClient * @param qdm a QDebug manipulator * @return a copy of debug_object that has its mode altered by qdm */ - inline QDebug operator<< (QDebug debug_object, QDebugManip qdm) + inline QDebug operator<<(QDebug debug_object, QDebugManip qdm) { return qdm(debug_object); } @@ -70,15 +69,15 @@ namespace QMatrixClient { return #ifdef PROFILER_LOG_USECS - PROFILER_LOG_USECS + PROFILER_LOG_USECS #else - 200 + 200 #endif - * 1000; + * 1000; } } -inline QDebug operator<< (QDebug debug_object, const QElapsedTimer& et) +inline QDebug operator<<(QDebug debug_object, const QElapsedTimer& et) { auto val = et.nsecsElapsed() / 1000; if (val < 1000) |