]> git.lyx.org Git - features.git/commitdiff
Save a header: We don't really need a vector here.
authorRichard Heck <rgheck@comcast.net>
Thu, 2 Dec 2010 21:11:08 +0000 (21:11 +0000)
committerRichard Heck <rgheck@comcast.net>
Thu, 2 Dec 2010 21:11:08 +0000 (21:11 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36667 a592a061-630c-0410-9148-cb99ea01b6c8

src/Counters.cpp
src/Counters.h

index d0bb56faf6720c01f4f79a909a3b4d4370b3a8f0..d7ef519ab8ced45cb288b14bf03f77f3c8d782cc 100644 (file)
@@ -451,7 +451,7 @@ docstring Counters::theCounter(docstring const & counter,
        if (smit != sm.end())
                return counterLabel(smit->second, lang);
 
-       vector<docstring> callers;
+       deque<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,
-                                      vector<docstring> & callers) const
+                                      deque<docstring> & callers) const
 {
        docstring label;
 
index d83c64e59dd980218b37c3c6fc9d26e0fc249f46..71ae36e8a6113c979e61619f3544ef54968db8c6 100644 (file)
@@ -21,7 +21,6 @@
 
 #include <map>
 #include <deque>
-#include <vector>
 
 
 namespace lyx {
@@ -189,7 +188,7 @@ private:
         */
        docstring flattenLabelString(docstring const & counter, bool in_appendix,
                                     std::string const &lang,
-                                    std::vector<docstring> & callers) const;
+                                    std::deque<docstring> & callers) const;
        /// Returns the value of the counter according to the
        /// numbering scheme numbertype.
        /** Available numbering schemes are arabic (1, 2,...), roman