From ee06b685b78879ec36e6b88de9d256679a3f42bd Mon Sep 17 00:00:00 2001 From: Richard Kimberly Heck Date: Wed, 26 Feb 2020 23:37:24 -0500 Subject: [PATCH] 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 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_; /// -- 2.39.5