]> git.lyx.org Git - features.git/commitdiff
Make doExport() helper private
authorGeorg Baum <baum@lyx.org>
Sun, 16 Nov 2014 19:51:42 +0000 (20:51 +0100)
committerGeorg Baum <baum@lyx.org>
Sun, 16 Nov 2014 19:51:42 +0000 (20:51 +0100)
One declaration of doExport() was not used, and the other one was only used by
Buffer, so make it private since returning the exported file name is a bit
strange if it can also appear as input argument.

src/Buffer.h

index ad6aeb8deb50bf057a0751bae84ede033e7a96a0..97975f12c472a975c3b1ca79ba47ff73b680b053 100644 (file)
@@ -643,20 +643,17 @@ public:
        ///
        ExportStatus doExport(std::string const & target, bool put_in_tempdir) const;
        ///
-       ExportStatus doExport(std::string const & target, bool put_in_tempdir,
-               std::string & result_file) const;
-       ///
        ExportStatus preview(std::string const & format) const;
 
 private:
+       ///
+       ExportStatus doExport(std::string const & target, bool put_in_tempdir,
+               std::string & result_file) const;
        /// target is a format name optionally followed by a space
        /// and a destination file-name
        ExportStatus doExport(std::string const & target, bool put_in_tempdir,
                bool includeall, std::string & result_file) const;
        ///
-       ExportStatus doExport(std::string const & target, bool put_in_tempdir,
-               bool includeall) const;
-       ///
        ExportStatus preview(std::string const & format, bool includeall = false) const;
        ///
        void setMathFlavor(OutputParams & op) const;