From 6711d08ff580206ec38b4f4a0deb1a04a16de431 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 17 May 2016 18:26:41 +0200 Subject: tracker/hatire: move logger from header There's no need for the identifier to be exposed. --- tracker-hatire/thread.cpp | 8 ++++++++ tracker-hatire/thread.hpp | 8 -------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/tracker-hatire/thread.cpp b/tracker-hatire/thread.cpp index 74abf628..629d1bff 100644 --- a/tracker-hatire/thread.cpp +++ b/tracker-hatire/thread.cpp @@ -48,6 +48,14 @@ void hatire_thread::sendcmd_impl(const QByteArray &cmd) #endif } +struct Diag final : public QFile +{ + Diag() + { + setFileName(QCoreApplication::applicationDirPath() + "/HATDiagnostics.txt"); + } +}; + void hatire_thread::Log(const QString& message) { // Drop out immediately if logging is off. Yes, there is still some overhead because of passing strings around for no reason. diff --git a/tracker-hatire/thread.hpp b/tracker-hatire/thread.hpp index b5ecacc2..26491cfe 100644 --- a/tracker-hatire/thread.hpp +++ b/tracker-hatire/thread.hpp @@ -36,14 +36,6 @@ struct serial_result results code; }; -struct Diag : public QFile -{ - Diag() - { - setFileName(QCoreApplication::applicationDirPath() + "/HATDiagnostics.txt"); - } -}; - class hatire_thread : public QThread { Q_OBJECT -- cgit v1.2.3