]> git.lyx.org Git - lyx.git/blobdiff - src/Toc.h
Account for old versions of Pygments
[lyx.git] / src / Toc.h
index 82f7ce170191a6d56275169fbf78d7bae145d8dd..bd6bdf2d4bffdc5c485691f428d2e54ca20c5df3 100644 (file)
--- a/src/Toc.h
+++ b/src/Toc.h
@@ -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[];
 };