]> 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 4a43c52b8a8192788796c0d79e67540eacd9e2d0..b02b08fa42f03d09334ea19e2f9d735b2b9bb03c 100644 (file)
@@ -5,7 +5,7 @@
  *
  * \file ControlShowFile.h
  *
- * \author Herbert Voss
+ * \author Herbert Voß
  *
  * Full author contact details are available in file CREDITS.
  */
@@ -14,6 +14,9 @@
 
 #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 & data);
+       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