>>>>> "Georg" == Georg Baum <[EMAIL PROTECTED]> writes:
Georg> ../../src/MenuBackend.C:762: Warnung: unbenutzter Parameter
Georg> »buf« Why is it unused? Can it be removed?
The following patch does that and cleans up the patch (too much cut
and paste, it seems). It also uses the toolbar's gui_name, since this
is what we really want.
OK?
JMarc
Index: src/MenuBackend.C
===================================================================
--- src/MenuBackend.C (revision 15825)
+++ src/MenuBackend.C (working copy)
@@ -759,17 +759,15 @@
}
-void expandToolbars(Menu & tomenu, Buffer const * buf)
+void expandToolbars(Menu & tomenu)
{
//
// extracts the toolbars from the backend
ToolbarBackend::Toolbars::const_iterator cit = toolbarbackend.begin();
ToolbarBackend::Toolbars::const_iterator end = toolbarbackend.end();
- int i = 1;
- for (; cit != end; ++cit, ++i) {
- docstring label = _(cit->name);
- label = char_type(uppercase(label[0])) + label.substr(1);
+ for (; cit != end; ++cit) {
+ docstring label = _(cit->gui_name);
// frontends are not supposed to turn on/off toolbars, if they can not
// update ToolbarBackend::flags. That is to say, ToolbarsBackend::flags
// should reflect the true state of toolbars.
@@ -856,7 +854,7 @@
break;
case MenuItem::Toolbars:
- expandToolbars(tomenu, buf);
+ expandToolbars(tomenu);
break;
case MenuItem::Branches: