]> git.lyx.org Git - lyx.git/blobdiff - src/BackStack.h
Angus insetindex patch + protect patch from Dekel
[lyx.git] / src / BackStack.h
index b56bb641476158fcdbefeb10b119af15def9da88..d1dc6f973c96c70d1accce9e2294b5db0116b5dd 100644 (file)
@@ -1,17 +1,18 @@
 // -*- 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>
+
 #include "LString.h"
 
 // Created by Alejandro Aguilar Sierra, 970806
@@ -22,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
@@ -55,7 +56,7 @@ public:
        }
 private:
        ///
-       stack<BackStackItem> stakk;
+       std::stack<BackStackItem> stakk;
 };
 
 #endif