From 31fcb5c97eefa15a8729deb48914927e2b58ccf5 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Thu, 2 Dec 2010 21:11:08 +0000 Subject: [PATCH] Save a header: We don't really need a vector here. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36667 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/Counters.cpp | 4 ++-- src/Counters.h | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Counters.cpp b/src/Counters.cpp index d0bb56faf6..d7ef519ab8 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); - vector callers; + deque 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 & callers) const + deque & callers) const { docstring label; diff --git a/src/Counters.h b/src/Counters.h index d83c64e59d..71ae36e8a6 100644 --- a/src/Counters.h +++ b/src/Counters.h @@ -21,7 +21,6 @@ #include #include -#include namespace lyx { @@ -189,7 +188,7 @@ private: */ docstring flattenLabelString(docstring const & counter, bool in_appendix, std::string const &lang, - std::vector & callers) const; + std::deque & callers) const; /// Returns the value of the counter according to the /// numbering scheme numbertype. /** Available numbering schemes are arabic (1, 2,...), roman