Skip to content

Commit 0558374

Browse files
committed
more static
1 parent 096c0d5 commit 0558374

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

include/notify-cpp/event.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ enum class Event {
6262
// TODO Check with assert
6363
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 15, 0)
6464
// No Aduit support https://github.com/torvalds/linux/commit/de8cd83e91bc3ee212b3e6ec6e4283af9e4ab269
65-
const std::array<std::uint32_t, 12> AllFanFlags = {{FAN_ACCESS,
65+
static const std::array<std::uint32_t, 12> AllFanFlags = {{FAN_ACCESS,
6666
FAN_MODIFY,
6767
FAN_CLOSE_WRITE,
6868
FAN_CLOSE_NOWRITE,
@@ -74,7 +74,7 @@ const std::array<std::uint32_t, 12> AllFanFlags = {{FAN_ACCESS,
7474
FAN_CLOSE,
7575
FAN_ALL_CLASS_BITS}};
7676
#else
77-
const std::array<std::uint32_t, 12> AllFanFlags = {{FAN_ACCESS,
77+
static const std::array<std::uint32_t, 12> AllFanFlags = {{FAN_ACCESS,
7878
FAN_MODIFY,
7979
FAN_CLOSE_WRITE,
8080
FAN_CLOSE_NOWRITE,
@@ -85,10 +85,9 @@ const std::array<std::uint32_t, 12> AllFanFlags = {{FAN_ACCESS,
8585
FAN_EVENT_ON_CHILD,
8686
FAN_CLOSE,
8787
FAN_ALL_CLASS_BITS,
88-
8988
FAN_ENABLE_AUDIT}};
9089
#endif
91-
const std::array<Event, 15> AllEvents = {Event::access,
90+
static const std::array<Event, 15> AllEvents = {Event::access,
9291
Event::modify,
9392
Event::attrib,
9493
Event::close_write,

0 commit comments

Comments
 (0)