mirror of
https://github.com/deskflow/deskflow.git
synced 2026-07-04 21:04:59 +08:00
refactor: directly set logger::m_debug using when in debug mode
This commit is contained in:
parent
e1c0803018
commit
78eae652fd
@ -8,12 +8,6 @@
|
||||
|
||||
#include <QObject>
|
||||
|
||||
#ifdef NDEBUG
|
||||
const bool kDebug = false;
|
||||
#else
|
||||
const bool kDebug = true;
|
||||
#endif
|
||||
|
||||
namespace deskflow::gui {
|
||||
|
||||
class Logger : public QObject
|
||||
@ -34,7 +28,11 @@ Q_SIGNALS:
|
||||
|
||||
private:
|
||||
static Logger s_instance;
|
||||
bool m_debug = kDebug;
|
||||
#ifdef NDEBUG
|
||||
bool m_debug = false;
|
||||
#else
|
||||
bool m_debug = true;
|
||||
#endif
|
||||
};
|
||||
|
||||
} // namespace deskflow::gui
|
||||
|
||||
Loading…
Reference in New Issue
Block a user