openbsd-ports/editors/subtitleeditor/patches/patch-src_cfg_cc
ajacoutot 330ae490a9 Major update to subtitleeditor-0.33.0.
This is not the very latest version, because it would require gstreamer-mm
which needs a newer gstreamer which needs a newer flex which... But it is
much better than what we currently have in-tree.

Mostly from Florent Tribouilloy at p2k9, thank you!
2009-10-14 21:47:20 +00:00

25 lines
660 B
Plaintext

$OpenBSD: patch-src_cfg_cc,v 1.1 2009/10/14 21:47:20 ajacoutot Exp $
--- src/cfg.cc.orig Tue Oct 13 12:49:32 2009
+++ src/cfg.cc Tue Oct 13 12:47:13 2009
@@ -737,7 +737,8 @@ Glib::ustring Config::get_value_string(const Glib::ust
bool state = get_value_string(group, key, value);
- g_return_val_if_fail(state, Glib::ustring());
+ Glib::ustring t;
+ g_return_val_if_fail(state, t);
return value;
}
@@ -750,8 +751,8 @@ Color Config::get_value_color(const Glib::ustring &gro
Color value;
bool state = get_value_color(group, key, value);
-
- g_return_val_if_fail(state, Color());
+ Color c;
+ g_return_val_if_fail(state, c);
return value;
}