From: Richard Kimberly Heck Date: Thu, 27 Feb 2020 04:37:24 +0000 (-0500) Subject: Fix warning (and simplify) X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=ee06b685b78879ec36e6b88de9d256679a3f42bd;p=features.git Fix warning (and simplify) --- diff --git a/src/TocBackend.cpp b/src/TocBackend.cpp index d401e22509..7ea16b747a 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 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 6ed3e8ee4f..c6f1d3898c 100644 --- a/src/TocBackend.h +++ b/src/TocBackend.h @@ -149,7 +149,7 @@ private: /// TocList tocs_; /// - std::map> builders_; + std::map> builders_; /// Stores localised outliner names from this buffer and its children std::map outliner_names_; ///