]> git.lyx.org Git - lyx.git/blobdiff - src/support/limited_stack.h
Correct comment
[lyx.git] / src / support / limited_stack.h
index 1354bcd701008ac89f42acca26ec6b8bf00a8463..c76497c4479dcabb3368a140d1cdd36cb90c7f79 100644 (file)
@@ -14,6 +14,9 @@
 
 #include <deque>
 
+
+namespace lyx {
+
 /**
  * limited_stack - A stack of limited size.
  *
@@ -29,9 +32,7 @@ public:
        typedef typename container_type::const_iterator const_iterator;
 
        /// limit is the maximum size of the stack
-       limited_stack(size_type limit = 100) {
-               limit_ = limit;
-       }
+       limited_stack(size_type limit = 100) : limit_(limit) {}
 
        /// Return the top element.
        value_type & top() {
@@ -91,4 +92,7 @@ private:
 template <typename T>
 class limited_stack<T*>;
 
+
+} // namespace lyx
+
 #endif // LIMITED_STACK_H