summaryrefslogtreecommitdiff
path: root/plugins/NewXstatusNotify/src/options.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-02-21 18:40:03 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-02-21 18:40:14 +0300
commit477a6ea70d0bb1b1dfe9cbd9a15b6dad0284ddeb (patch)
tree247eed13a5231c3983e343f0b7fc2a95012353c2 /plugins/NewXstatusNotify/src/options.cpp
parent9d0174ebe2bd005418855b18f737c36d5c20ab4a (diff)
all another C++'11 iterators
Diffstat (limited to 'plugins/NewXstatusNotify/src/options.cpp')
-rw-r--r--plugins/NewXstatusNotify/src/options.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/plugins/NewXstatusNotify/src/options.cpp b/plugins/NewXstatusNotify/src/options.cpp
index 82705d78b0..2b3231a74b 100644
--- a/plugins/NewXstatusNotify/src/options.cpp
+++ b/plugins/NewXstatusNotify/src/options.cpp
@@ -132,13 +132,12 @@ void SaveTemplates()
db_set_b(0, MODULE, "TLogXFlags", templates.LogXFlags);
db_set_b(0, MODULE, "TLogSMsgFlags", templates.LogSMsgFlags);
- for (int i = 0; i < ProtoTemplates.getCount(); i++) {
- PROTOTEMPLATE *prototemplate = ProtoTemplates[i];
+ for (auto &it : ProtoTemplates) {
char str[MAX_PATH];
- mir_snprintf(str, "%s_TPopupSMsgChanged", prototemplate->ProtoName);
- db_set_ws(0, MODULE, str, prototemplate->ProtoTemplateMsg);
- mir_snprintf(str, "%s_TPopupSMsgRemoved", prototemplate->ProtoName);
- db_set_ws(0, MODULE, str, prototemplate->ProtoTemplateRemoved);
+ mir_snprintf(str, "%s_TPopupSMsgChanged", it->ProtoName);
+ db_set_ws(0, MODULE, str, it->ProtoTemplateMsg);
+ mir_snprintf(str, "%s_TPopupSMsgRemoved", it->ProtoName);
+ db_set_ws(0, MODULE, str, it->ProtoTemplateRemoved);
}
}