From e24348aedb99bb52f350e617de469f7809a49201 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Sun, 16 Feb 2003 15:03:22 +0000 Subject: fixed return statment --- src/FbTk/Menu.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/FbTk/Menu.cc b/src/FbTk/Menu.cc index d0267cb..94561e3 100644 --- a/src/FbTk/Menu.cc +++ b/src/FbTk/Menu.cc @@ -22,7 +22,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Menu.cc,v 1.9 2003/02/15 01:48:16 fluxgen Exp $ +// $Id: Menu.cc,v 1.10 2003/02/16 15:03:22 fluxgen Exp $ //use GNU extensions #ifndef _GNU_SOURCE @@ -178,7 +178,6 @@ int Menu::insert(const char *label, RefCount &cmd, int pos) { int Menu::insert(const char *label, int pos) { return insert(new MenuItem(label), pos); - return menuitems.size(); } int Menu::insert(const char *label, Menu *submenu, int pos) { @@ -191,7 +190,8 @@ int Menu::insert(MenuItem *item, int pos) { menuitems.push_back(item); } else { menuitems.insert(menuitems.begin() + pos, item); - } + } + return menuitems.size(); } int Menu::remove(unsigned int index) { -- cgit v0.11.2