commit 79bcf68018bb3dd0be926ff63b9a82d6f6204166
Author: Richard Kimberly Heck <[email protected]>
Date:   Wed Feb 26 23:37:24 2020 -0500

    Fix warning (and simplify)
---
 src/TocBackend.cpp |    2 +-
 src/TocBackend.h   |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/TocBackend.cpp b/src/TocBackend.cpp
index d401e22..7ea16b7 100644
--- a/src/TocBackend.cpp
+++ b/src/TocBackend.cpp
@@ -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
diff --git a/src/TocBackend.h b/src/TocBackend.h
index 6ed3e8e..c6f1d38 100644
--- a/src/TocBackend.h
+++ b/src/TocBackend.h
@@ -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_;
        ///
-- 
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to