From 1119c081826f1d1bcb5fb57b323482ffec4023fa Mon Sep 17 00:00:00 2001 From: Rasmus Karlsson Date: Tue, 3 Apr 2018 02:35:02 +0200 Subject: [PATCH] Simplify debug::Log. No need for a second function --- src/debug/log.hpp | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/debug/log.hpp b/src/debug/log.hpp index e2a3fbea4..2eb6e126c 100644 --- a/src/debug/log.hpp +++ b/src/debug/log.hpp @@ -8,19 +8,11 @@ namespace chatterino { namespace debug { -namespace detail { - -static void _log(const std::string &message) -{ - qDebug().noquote() << QTime::currentTime().toString("hh:mm:ss.zzz") << message.c_str(); -} - -} // namespace detail - template inline void Log(const std::string &formatString, Args &&... args) { - detail::_log(fS(formatString, std::forward(args)...)); + qDebug().noquote() << QTime::currentTime().toString("hh:mm:ss.zzz") + << fS(formatString, std::forward(args)...).c_str(); } } // namespace debug