opnsense-ports/comms/aldo/files/patch-src_menu.cc
Franco Fichtner 81767f1daa */*: sync with upstream
Taken from: HardenedBSD
2018-03-24 09:42:06 +01:00

25 lines
631 B
C++

--- src/menu.cc.orig 2012-03-31 11:32:34 UTC
+++ src/menu.cc
@@ -112,19 +112,19 @@ void Menu::add_item(id_type id, std::str
void Menu::add_item_at(unsigned int pos, id_type id, std::string c, Function1 f)
{
- IT it(&m_its[pos]);
+ IT it(m_its.begin() + pos);
m_its.insert(it, Item(id,c,f) );
}
void Menu::add_item_at(unsigned int pos, id_type id, std::string c, Function2 f)
{
- IT it(&m_its[pos]);
+ IT it(m_its.begin() + pos);
m_its.insert(it, Item(id,c,f) );
}
void Menu::delete_item_at(unsigned int pos)
{
- IT it(&m_its[pos]);
+ IT it(m_its.begin() + pos);
m_its.erase(it);
}