]> git.lyx.org Git - lyx.git/blobdiff - src/BackStack.h
More fixes to insettabular/text (and some missing features added).
[lyx.git] / src / BackStack.h
index d1dc6f973c96c70d1accce9e2294b5db0116b5dd..4974ce22d5aa60c968822663fad58a668d7e0221 100644 (file)
@@ -15,9 +15,9 @@
 
 #include "LString.h"
 
-// Created by Alejandro Aguilar Sierra, 970806
-
 /**  Utility to get back from a reference or from a child document.
+     @author Alejandro Aguilar Sierra
+     @version 970806
  */
 class BackStack {
 private:
@@ -43,14 +43,16 @@ public:
                stakk.push(bit);
        }
        ///
-       string pop(int * x, int * y) {
+       string const pop(int * x, int * y) {
                BackStackItem bit = stakk.top();
                *x = bit.x;
                *y = bit.y;
                stakk.pop();
                return bit.fname;
        }
-       ///
+       /**
+          @return returns #true# if the stack is empty, #false# otherwise.
+        */
        bool empty() const {
                return stakk.empty();
        }