[ardour-dev] gtk2 port: decrease ardour.bin's size by 1.5%

Karsten Wiese annabellesgarden at yahoo.de
Sat Dec 17 04:39:03 PST 2005


I'd like to commit attached patch.

It decreases code size (1.5% here on FC4 at x86_64)
by omitting string constructor calls in situations,
where C style strings are passed to functions expecting 
std::string (or glib::ustring) arguments.

Attached patch simply adjusts those functions to accept a C style
"const char *". Functionality should be 100% equal as the std::string
(or glib::ustring) constructor call is simply moved from
	"before the function is called" 
	"inside the function"

Will commit tomorrow, if nobody disagrees.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: const_char_pointer.0.01.diff
Type: text/x-diff
Size: 10462 bytes
Desc: not available
URL: <http://lists.ardour.org/pipermail/ardour-dev-ardour.org/attachments/20051217/73bef011/attachment.diff>

More information about the Ardour-Dev mailing list