summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-08-25 04:31:02 +0300
committerAndrei Karas <akaras@inbox.ru>2016-08-25 04:31:02 +0300
commit1298d827ce0d1e8bf4c470d6cf8177e0b2035385 (patch)
treee6fe40637e02ad7d6f0d3a55b75b6ffed09f60c3 /src/resources
parent898d7acad948b253276b11aa215bb200323116c1 (diff)
downloadmv-1298d827ce0d1e8bf4c470d6cf8177e0b2035385.tar.gz
mv-1298d827ce0d1e8bf4c470d6cf8177e0b2035385.tar.bz2
mv-1298d827ce0d1e8bf4c470d6cf8177e0b2035385.tar.xz
mv-1298d827ce0d1e8bf4c470d6cf8177e0b2035385.zip
Gurard notifications array size with amount of notification enum members.
Diffstat (limited to 'src/resources')
-rw-r--r--src/resources/notifications.h6
1 files changed, 4 insertions, 2 deletions
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},