mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-07 17:55:30 +00:00
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
This commit is contained in:
parent
59760159e2
commit
31fcb5c97e
@ -451,7 +451,7 @@ docstring Counters::theCounter(docstring const & counter,
|
|||||||
if (smit != sm.end())
|
if (smit != sm.end())
|
||||||
return counterLabel(smit->second, lang);
|
return counterLabel(smit->second, lang);
|
||||||
|
|
||||||
vector<docstring> callers;
|
deque<docstring> callers;
|
||||||
docstring const & fls = flattenLabelString(counter, appendix(),
|
docstring const & fls = flattenLabelString(counter, appendix(),
|
||||||
lang, callers);
|
lang, callers);
|
||||||
sm[lang] = fls;
|
sm[lang] = fls;
|
||||||
@ -462,7 +462,7 @@ docstring Counters::theCounter(docstring const & counter,
|
|||||||
docstring Counters::flattenLabelString(docstring const & counter,
|
docstring Counters::flattenLabelString(docstring const & counter,
|
||||||
bool in_appendix,
|
bool in_appendix,
|
||||||
string const & lang,
|
string const & lang,
|
||||||
vector<docstring> & callers) const
|
deque<docstring> & callers) const
|
||||||
{
|
{
|
||||||
docstring label;
|
docstring label;
|
||||||
|
|
||||||
|
@ -21,7 +21,6 @@
|
|||||||
|
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <deque>
|
#include <deque>
|
||||||
#include <vector>
|
|
||||||
|
|
||||||
|
|
||||||
namespace lyx {
|
namespace lyx {
|
||||||
@ -189,7 +188,7 @@ private:
|
|||||||
*/
|
*/
|
||||||
docstring flattenLabelString(docstring const & counter, bool in_appendix,
|
docstring flattenLabelString(docstring const & counter, bool in_appendix,
|
||||||
std::string const &lang,
|
std::string const &lang,
|
||||||
std::vector<docstring> & callers) const;
|
std::deque<docstring> & callers) const;
|
||||||
/// Returns the value of the counter according to the
|
/// Returns the value of the counter according to the
|
||||||
/// numbering scheme numbertype.
|
/// numbering scheme numbertype.
|
||||||
/** Available numbering schemes are arabic (1, 2,...), roman
|
/** Available numbering schemes are arabic (1, 2,...), roman
|
||||||
|
Loading…
Reference in New Issue
Block a user