From 7e33edc3c37df1f1f8124c4d1362e418b25e2e07 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Fri, 3 Dec 2010 22:42:22 +0000 Subject: [PATCH] Apparently deques aren't so cool. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36709 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/Counters.cpp | 4 ++-- src/Counters.h | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Counters.cpp b/src/Counters.cpp index d7ef519ab8..d0bb56faf6 100644 --- a/src/Counters.cpp +++ b/src/Counters.cpp @@ -451,7 +451,7 @@ docstring Counters::theCounter(docstring const & counter, if (smit != sm.end()) return counterLabel(smit->second, lang); - deque callers; + vector 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 & callers) const + vector & callers) const { docstring label; diff --git a/src/Counters.h b/src/Counters.h index 71ae36e8a6..399d1729f0 100644 --- a/src/Counters.h +++ b/src/Counters.h @@ -20,7 +20,7 @@ #include "support/docstring.h" #include -#include +#include namespace lyx { @@ -188,7 +188,7 @@ private: */ docstring flattenLabelString(docstring const & counter, bool in_appendix, std::string const &lang, - std::deque & callers) const; + std::vector & 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 counter_stack_; + std::vector counter_stack_; /// Same, but for last layout. - std::deque layout_stack_; + std::vector layout_stack_; }; } // namespace lyx