forked from Lainports/freebsd-ports
Port changes: * Change to DISTVERSION * Add LICENSE/LICENSE_FILE * Remove USE_GCC * Add USES=localbase instead of CPPFLAGS/LIBS PR: 226349 Submitted by: Dmitri Goutnik <dg@syrec.org> Approved by: lambert@lambertfam.org (maintainer timeout; 19 days)
25 lines
631 B
C++
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);
|
|
}
|
|
|