projects
/
goodguy
/
history.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
more build tweaks for bsd
[goodguy/history.git]
/
cinelerra-5.1
/
guicast
/
bcrecentlist.C
diff --git
a/cinelerra-5.1/guicast/bcrecentlist.C
b/cinelerra-5.1/guicast/bcrecentlist.C
index 3d0d2839066270b886713fadf5fb053c067bdfbe..d1e24349e654a8cfb7137064c7d8cf77fca1bc32 100644
(file)
--- 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();
}
items.remove_all_objects();
}
-int BC_RecentList::handle_event() {
+int BC_RecentList::handle_event()
+{
BC_ListBoxItem *item = get_selection(0, 0);
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
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";
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";
if (! prefix) prefix = "ANY";
@@
-133,3
+136,4
@@
int BC_RecentList::add_item(const char *prefix, char *text) {
return count;
}
return count;
}
+