extern LyXAction lyxaction;
ToolbarDefaults toolbardefaults;
+
ToolbarDefaults::ToolbarDefaults()
{
init();
defaults.push_back(action);
}
+
void ToolbarDefaults::init()
{
add(LAYOUTS);
void ToolbarDefaults::add(string const & func)
{
- int tf = lyxaction.LookupFunc(func);
+ int const tf = lyxaction.LookupFunc(func);
if (tf == -1) {
lyxerr << "Toolbar::add: no LyX command called`"