]> git.lyx.org Git - lyx.git/blobdiff - src/Toc.h
Provide proper fallback if a bibliography processor is not found
[lyx.git] / src / Toc.h
index d58a09a00340014a18c31094d1a127fe0e5952d1..bd6bdf2d4bffdc5c485691f428d2e54ca20c5df3 100644 (file)
--- a/src/Toc.h
+++ b/src/Toc.h
@@ -1,6 +1,6 @@
 // -*- C++ -*-
 /**
- * \file TocBackend.h
+ * \file Toc.h
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
@@ -15,9 +15,8 @@
 #ifndef TOC_H
 #define TOC_H
 
-#include "support/shared_ptr.h"
-
 #include <map>
+#include <memory>
 #include <vector>
 #include <string>
 
@@ -29,12 +28,12 @@ class TocItem;
 
 typedef std::vector<TocItem> Toc;
 
-class TocList : public std::map<std::string, shared_ptr<Toc> >
+class TocList : public std::map<std::string, std::shared_ptr<Toc>>
 {
 private:
        // TocList should never map to null pointers.
-       // We forbid the following method which creates null pointers.
-       using std::map<std::string, shared_ptr<Toc> >::operator[];
+       // We hide the following methods which create null pointers.
+       using std::map<std::string, std::shared_ptr<Toc>>::operator[];
 };