X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fguicast%2Fbcrecentlist.C;h=d1e24349e654a8cfb7137064c7d8cf77fca1bc32;hb=34dd3a28727fc230ba5abbed50766d671a2b8055;hp=3d0d2839066270b886713fadf5fb053c067bdfbe;hpb=21c2e6b36d6a96c2f662a89459d607b5a387f4eb;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/guicast/bcrecentlist.C b/cinelerra-5.1/guicast/bcrecentlist.C index 3d0d2839..d1e24349 100644 --- a/cinelerra-5.1/guicast/bcrecentlist.C +++ b/cinelerra-5.1/guicast/bcrecentlist.C @@ -65,9 +65,10 @@ BC_RecentList::~BC_RecentList() items.remove_all_objects(); } -int BC_RecentList::handle_event() { +int BC_RecentList::handle_event() +{ BC_ListBoxItem *item = get_selection(0, 0); - if (item < 0) return 0; + if( !item ) return 0; char *text = item->get_text(); if (text && textbox) { // change the text in the textbox @@ -79,7 +80,8 @@ int BC_RecentList::handle_event() { } -int BC_RecentList::load_items(const char *prefix) { +int BC_RecentList::load_items(const char *prefix) +{ if (! prefix) prefix = "ANY"; @@ -105,7 +107,8 @@ int BC_RecentList::load_items(const char *prefix) { } -int BC_RecentList::add_item(const char *prefix, char *text) { +int BC_RecentList::add_item(const char *prefix, const char *text) +{ if (! prefix) prefix = "ANY"; @@ -133,3 +136,4 @@ int BC_RecentList::add_item(const char *prefix, char *text) { return count; } +