Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-kde
Path: blob/main/comms/aldo/files/patch-src_menu.cc
16461 views
1
--- src/menu.cc.orig 2012-03-31 11:32:34 UTC
2
+++ src/menu.cc
3
@@ -112,19 +112,19 @@ void Menu::add_item(id_type id, std::str
4
5
void Menu::add_item_at(unsigned int pos, id_type id, std::string c, Function1 f)
6
{
7
- IT it(&m_its[pos]);
8
+ IT it(m_its.begin() + pos);
9
m_its.insert(it, Item(id,c,f) );
10
}
11
12
void Menu::add_item_at(unsigned int pos, id_type id, std::string c, Function2 f)
13
{
14
- IT it(&m_its[pos]);
15
+ IT it(m_its.begin() + pos);
16
m_its.insert(it, Item(id,c,f) );
17
}
18
19
void Menu::delete_item_at(unsigned int pos)
20
{
21
- IT it(&m_its[pos]);
22
+ IT it(m_its.begin() + pos);
23
m_its.erase(it);
24
}
25
26
27