freebsd-ports/comms/aldo/files/patch-src_menu.cc
Yuri Victorovich 321e6555c0 comms/aldo: Update 0.7.5 -> 0.7.7
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)
2018-03-23 20:46:26 +00: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);
}