John Spray <[EMAIL PROTECTED]> writes: | Index: GPreferences.C | =================================================================== | RCS file: GPreferences.C | diff -N GPreferences.C | --- /dev/null 1 Jan 1970 00:00:00 -0000 | +++ GPreferences.C 5 Feb 2006 21:55:55 -0000 | @@ -0,0 +1,152 @@ | +/** | + * \file GPreferences.C
[...] | + | +/* | +namespace { | + | +pair <string, string> parseFontName(Glib::ustring &name) | +{ const ref? | + string fontname = ""; | + string foundry = ""; Drop the initalization. Is foundry actually used at all? | + int i = 0; | + string word; | + while (word = token(name, ' ', i++)) { | + if (word == "Bold" || word == "Italic") | + fontname += (i? " " : "") + word; | + } | + | + std::cerr << "parseFontName: made '" << name << "' into '" << fontname << "'\n"; | + | + return makepair (fontname, foundry); | +} | + -- Lgb