Fix warning (and simplify)

This commit is contained in:
Richard Kimberly Heck 2020-02-26 23:37:24 -05:00
parent 64f7da961a
commit 79bcf68018
2 changed files with 2 additions and 2 deletions

View File

@ -279,7 +279,7 @@ void TocBackend::resetOutlinerNames()
{
outliner_names_.clear();
// names from this document class
for (pair<string, docstring> const & name
for (auto const & name
: buffer_->params().documentClass().outlinerNames())
addName(name.first, translateIfPossible(name.second));
// Hardcoded types

View File

@ -149,7 +149,7 @@ private:
///
TocList tocs_;
///
std::map<std::string, unique_ptr<TocBuilder>> builders_;
std::map<std::string, std::shared_ptr<TocBuilder>> builders_;
/// Stores localised outliner names from this buffer and its children
std::map<std::string, docstring> outliner_names_;
///