]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/controllers/ControlShowFile.h
fix crash due to invalidated iterator
[lyx.git] / src / frontends / controllers / ControlShowFile.h
index 654dc93f36973efca7b650f1e511746c08f25d82..b02b08fa42f03d09334ea19e2f9d735b2b9bb03c 100644 (file)
@@ -5,15 +5,18 @@
  *
  * \file ControlShowFile.h
  *
- * \author Herbert Voss
+ * \author Herbert Voß
  *
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
  */
 #ifndef CONTROLSHOWFILE_H
 #define CONTROLSHOWFILE_H
 
 #include "Dialog.h"
 
+namespace lyx {
+namespace frontend {
+
 /** A controller for the ShowFile dialog. */
 
 class ControlShowFile : public Dialog::Controller {
@@ -21,7 +24,7 @@ public:
        ///
        ControlShowFile(Dialog &);
        ///
-       virtual bool initialiseParams(string const &);
+       virtual bool initialiseParams(std::string const & data);
        ///
        virtual void clearParams();
        ///
@@ -29,13 +32,16 @@ public:
        ///
        virtual bool isBufferDependent() const { return false; }
        ///
-       string getFileContents();
+       std::string getFileContents();
        ///
-       string getFileName();
+       std::string getFileName();
 
 private:
        ///
-       string filename_;
+       std::string filename_;
 };
 
+} // namespace frontend
+} // namespace lyx
+
 #endif // CONTROLSHOWFILE_H