]> git.lyx.org Git - lyx.git/blobdiff - src/LayoutFile.h
Add LFUN_SERVER_GET_STATISTICS command
[lyx.git] / src / LayoutFile.h
index d2c87258eade9297e729b0a50dd82df60d17ca65..e27f58befb2eb1e81d1287394cff1a1b18459bbc 100644 (file)
@@ -34,7 +34,7 @@ public:
        ///
        typedef std::string base_type;
        ///
-       LayoutFileIndex(base_type t) { data_ = t; }
+       LayoutFileIndex(base_type const & t) : data_(t) { }
        ///
        operator base_type() const { return data_; }
        ///
@@ -81,7 +81,7 @@ private:
        /// LayoutFileList, which calls the private constructor.
        friend class LayoutFileList;
        /// can't create empty LayoutFile
-       LayoutFile() {};
+       LayoutFile() {}
 };
 
 
@@ -90,8 +90,6 @@ private:
 /// via LayoutFileList::get()
 class LayoutFileList {
 public:
-       ///
-       LayoutFileList() {}
        ///
        ~LayoutFileList();
        /// \return The sole instance of this class.
@@ -128,6 +126,8 @@ public:
        bool load(std::string const & name, std::string const & buf_path);
 
 private:
+       ///
+       LayoutFileList() {}
        ///
        typedef std::map<std::string, LayoutFile *> ClassMap;
        /// noncopyable