From 1298d827ce0d1e8bf4c470d6cf8177e0b2035385 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 25 Aug 2016 04:31:02 +0300 Subject: Gurard notifications array size with amount of notification enum members. --- src/resources/notifications.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/resources/notifications.h') diff --git a/src/resources/notifications.h b/src/resources/notifications.h index 45a90460e..4e345425b 100644 --- a/src/resources/notifications.h +++ b/src/resources/notifications.h @@ -21,15 +21,17 @@ #ifndef RESOURCES_NOTIFICATIONS_H #define RESOURCES_NOTIFICATIONS_H -#include "localconsts.h" +#include "enums/resources/notifytypes.h" #include "resources/notificationinfo.h" #include "utils/gettext.h" +#include "localconsts.h" + namespace NotifyManager { - static const NotificationInfo notifications[] = + static const NotificationInfo notifications[NotifyTypes::TYPE_END] = { {"", "", NotifyFlags::EMPTY}, -- cgit v1.2.3-60-g2f50