diff options
author | Erik Verbruggen <erik@verbruggen.consulting> | 2021-10-07 21:24:21 +0300 |
---|---|---|
committer | Hannah von Reth <vonreth@kde.org> | 2021-10-27 15:30:39 +0300 |
commit | 530560862bc51203c957d5afed2c33e6ff3b8eb3 (patch) | |
tree | 92c2dffd4ef7cc70e27a98a94ac6a06584fef325 /src/gui/folderwatcher_linux.h | |
parent | d5750e36a71f70d67e97154de1394e2c22fcb6fe (diff) |
Make _ready member field private or constexpr
Make _ready constexpr on macOS and Linux, so it doesnt' use any space.
On Windows it's now private.
Diffstat (limited to 'src/gui/folderwatcher_linux.h')
-rw-r--r-- | src/gui/folderwatcher_linux.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/folderwatcher_linux.h b/src/gui/folderwatcher_linux.h index ee0d2c065..f2a2738b7 100644 --- a/src/gui/folderwatcher_linux.h +++ b/src/gui/folderwatcher_linux.h @@ -42,7 +42,7 @@ public: int testWatchCount() const { return _pathToWatch.size(); } /// On linux the watcher is ready when the ctor finished. - bool _ready = 1; + constexpr bool isReady() const { return true; } protected slots: void slotReceivedNotification(int fd); |