mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 21:21:32 +00:00
Fix warning (and simplify)
This commit is contained in:
parent
64f7da961a
commit
79bcf68018
@ -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
|
||||
|
@ -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_;
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user