]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/Toolbar.C
We don't currently use fork anywhere (or if we do it's by mistake!), so
[lyx.git] / src / frontends / Toolbar.C
index 7bf23601a326250f3c1ea1c32f08ac227c8adc39..68abc6b4660235514e958c382a45ba8d2d97c983 100644 (file)
@@ -4,7 +4,7 @@
  *           LyX, The Document Processor
  *
  *           Copyright 1995 Matthias Ettrich
- *           Copyright 1995-2000 The LyX Team.
+ *           Copyright 1995-2001 The LyX Team.
  *
  *           This file is Copyright 1996-1998
  *           Lars Gullik Bjønnes
@@ -44,6 +44,7 @@ Toolbar::Toolbar(LyXView * o, int x, int y, ToolbarDefaults const &tbd)
        }
 }
 
+
 Toolbar::~Toolbar()
 {
        delete pimpl_;
@@ -106,7 +107,7 @@ void Toolbar::push(int nth)
 
 void Toolbar::add(string const & func, bool doclean)
 {
-       int tf = lyxaction.LookupFunc(func);
+       int const tf = lyxaction.LookupFunc(func);
 
        if (tf == -1) {
                lyxerr << "Toolbar::add: no LyX command called`"
@@ -115,5 +116,3 @@ void Toolbar::add(string const & func, bool doclean)
                pimpl_->add(tf, doclean);
        }
 }
-
-