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
}
-int BC_RecentList::load_items(const char *prefix) {
+int BC_RecentList::load_items(const char *prefix)
+{
if (! prefix) prefix = "ANY";
}
-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";
return count;
}
+