]> git.lyx.org Git - features.git/commitdiff
Apparently deques aren't so cool.
authorRichard Heck <rgheck@comcast.net>
Fri, 3 Dec 2010 22:42:22 +0000 (22:42 +0000)
committerRichard Heck <rgheck@comcast.net>
Fri, 3 Dec 2010 22:42:22 +0000 (22:42 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36709 a592a061-630c-0410-9148-cb99ea01b6c8

src/Counters.cpp
src/Counters.h

index d7ef519ab8ced45cb288b14bf03f77f3c8d782cc..d0bb56faf6720c01f4f79a909a3b4d4370b3a8f0 100644 (file)
@@ -451,7 +451,7 @@ docstring Counters::theCounter(docstring const & counter,
        if (smit != sm.end())
                return counterLabel(smit->second, lang);
 
-       deque<docstring> callers;
+       vector<docstring> callers;
        docstring const & fls = flattenLabelString(counter, appendix(),
                                                   lang, callers);
        sm[lang] = fls;
@@ -462,7 +462,7 @@ docstring Counters::theCounter(docstring const & counter,
 docstring Counters::flattenLabelString(docstring const & counter, 
                                       bool in_appendix,
                                       string const & lang,
-                                      deque<docstring> & callers) const
+                                      vector<docstring> & callers) const
 {
        docstring label;
 
index 71ae36e8a6113c979e61619f3544ef54968db8c6..399d1729f053bdbf2bdda3b118bd73338e2ce90d 100644 (file)
@@ -20,7 +20,7 @@
 #include "support/docstring.h"
 
 #include <map>
-#include <deque>
+#include <vector>
 
 
 namespace lyx {
@@ -188,7 +188,7 @@ private:
         */
        docstring flattenLabelString(docstring const & counter, bool in_appendix,
                                     std::string const &lang,
-                                    std::deque<docstring> & callers) const;
+                                    std::vector<docstring> & callers) const;
        /// Returns the value of the counter according to the
        /// numbering scheme numbertype.
        /** Available numbering schemes are arabic (1, 2,...), roman
@@ -213,9 +213,9 @@ private:
        /// Are we in a subfloat?
        bool subfloat_;
        /// Used to keep track of active counters.
-       std::deque<docstring> counter_stack_;
+       std::vector<docstring> counter_stack_;
        /// Same, but for last layout.
-       std::deque<Layout const *> layout_stack_;
+       std::vector<Layout const *> layout_stack_;
 };
 
 } // namespace lyx