diff options
author | George Hazan <george.hazan@gmail.com> | 2015-06-04 22:12:13 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-06-04 22:12:13 +0000 |
commit | b7c74cd5b22618d544a3f4ae124985d4837e3a22 (patch) | |
tree | 468d9610a590685322ad2159a9bd2d9e2ba83f89 /src/modules/clist/genmenuopt.cpp | |
parent | 7de513f180c429859e246d1033d745b394e1fc28 (diff) |
new mir_snprintf templates without SIZEOF
git-svn-id: http://svn.miranda-ng.org/main/trunk@14002 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/clist/genmenuopt.cpp')
-rw-r--r-- | src/modules/clist/genmenuopt.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/modules/clist/genmenuopt.cpp b/src/modules/clist/genmenuopt.cpp index 7a2339ed47..6be6805ab2 100644 --- a/src/modules/clist/genmenuopt.cpp +++ b/src/modules/clist/genmenuopt.cpp @@ -170,7 +170,7 @@ class CGenMenuOptionsPage : public CDlgBase GetMenuItemName(p, menuItemName, sizeof(menuItemName)); { DBVARIANT dbv; - mir_snprintf(buf, SIZEOF(buf), "%s_name", menuItemName); + mir_snprintf(buf, "%s_name", menuItemName); if (!db_get_ts(NULL, MenuNameItems, buf, &dbv)) { PD->name = mir_tstrdup(dbv.ptszVal); @@ -182,11 +182,11 @@ class CGenMenuOptionsPage : public CDlgBase PD->pimi = p; PD->defname = mir_tstrdup(GetMenuItemText(p)); - mir_snprintf(buf, SIZEOF(buf), "%s_visible", menuItemName); + mir_snprintf(buf, "%s_visible", menuItemName); PD->bShow = db_get_b(NULL, MenuNameItems, buf, 1) != 0; if (bReread) { - mir_snprintf(buf, SIZEOF(buf), "%s_pos", menuItemName); + mir_snprintf(buf, "%s_pos", menuItemName); PD->pos = db_get_dw(NULL, MenuNameItems, buf, 1); } else PD->pos = (PD->pimi) ? PD->pimi->originalPosition : 0; @@ -323,7 +323,7 @@ public: int iNewMenuValue = !m_radio1.GetState(); if (iNewMenuValue != iInitMenuValue) { - db_set_b(NULL, "CList", "MoveProtoMenus", iNewMenuValue);
+ db_set_b(NULL, "CList", "MoveProtoMenus", iNewMenuValue); RebuildProtoMenus(iNewMenuValue); iInitMenuValue = iNewMenuValue; @@ -362,7 +362,7 @@ public: tvis.item.mask = TVIF_PARAM | TVIF_TEXT | TVIF_IMAGE | TVIF_SELECTEDIMAGE; m_menuItems.InsertItem(&tvis); - NotifyChange();
+ NotifyChange(); } void btnReset_Clicked(CCtrlButton*) @@ -370,7 +370,7 @@ public: int MenuObjectID; if (GetCurrentMenuObjectID(MenuObjectID)) { BuildTree(MenuObjectID, false); - NotifyChange();
+ NotifyChange(); } } @@ -393,7 +393,7 @@ public: SaveTree(); RebuildCurrent(); - NotifyChange();
+ NotifyChange(); } void btnSet_Clicked(CCtrlButton*) @@ -415,7 +415,7 @@ public: SaveTree(); RebuildCurrent(); - NotifyChange();
+ NotifyChange(); } void onMenuObjectChanged(void*) |