From e68d06b31be629e54f8e652663536830b044a17e Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Thu, 14 Jan 2021 22:13:21 +0200 Subject: [PATCH] Add missing const keyword --- ftrace.cpp | 2 +- ftrace.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ftrace.cpp b/ftrace.cpp index 3bf7f35625..e8614440a9 100644 --- a/ftrace.cpp +++ b/ftrace.cpp @@ -33,7 +33,7 @@ FTraceLogger::FTraceLogger(QObject *parent) } } -bool FTraceLogger::isEnabled() +bool FTraceLogger::isEnabled() const { return m_file.isOpen(); } diff --git a/ftrace.h b/ftrace.h index 4d2c431ed1..9ff0cbf6b4 100644 --- a/ftrace.h +++ b/ftrace.h @@ -37,7 +37,7 @@ public: /** * Enabled through DBus and logging has started */ - bool isEnabled(); + bool isEnabled() const; /** * Main log function