]> git.lyx.org Git - lyx.git/blobdiff - src/BackStack.h
Fix small bug in reading \set_color in lyxrc
[lyx.git] / src / BackStack.h
index 80e138f669a6afdf35a4036537bce3d240f19067..d1dc6f973c96c70d1accce9e2294b5db0116b5dd 100644 (file)
@@ -1,18 +1,17 @@
 // -*- C++ -*-
 /* This file is part of
- * ======================================================
+ * ====================================================== 
  * 
  *           LyX, The Document Processor
  *      
- *         Copyright (C) 1997-1999 The LyX Team.
+ *         Copyright 1997-2000 The LyX Team.
  *
- * ======================================================*/
+ * ====================================================== */
 
 #ifndef BACK_STACK_H
 #define BACK_STACK_H
 
 #include <stack>
-using std::stack;
 
 #include "LString.h"
 
@@ -24,12 +23,12 @@ class BackStack {
 private:
        ///
        struct BackStackItem {
+               ///
+               BackStackItem() 
+                       : x(0), y(0) {}
+               ///
                BackStackItem(string const & f, int xx, int yy)
                        : fname(f), x(xx), y(yy) {}
-               ///
-               //void set(string f, int xx, int yy) {
-               //      fname = f;  x = xx;  y = yy;
-               //}
                /// Filename
                string fname;
                /// Cursor x-position
@@ -57,7 +56,7 @@ public:
        }
 private:
        ///
-       stack<BackStackItem> stakk;
+       std::stack<BackStackItem> stakk;
 };
 
 #endif