]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/controllers/ControlShowFile.C
fix crash due to invalidated iterator
[lyx.git] / src / frontends / controllers / ControlShowFile.C
index 0ec4803cfecc06cc447f01b8188b35c76ceb4fc4..6ffe52a18e805e2fce0a864e756a1829b106601f 100644 (file)
@@ -3,7 +3,7 @@
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
- * \author Herbert Voss
+ * \author Herbert Voß
  *
  * Full author contact details are available in file CREDITS.
  */
 #include "ControlShowFile.h"
 #include "support/filetools.h"
 
-using namespace lyx::support;
+using std::string;
+
+namespace lyx {
+
+using support::GetFileContents;
+using support::OnlyFilename;
+
+namespace frontend {
 
 
 ControlShowFile::ControlShowFile(Dialog & parent)
@@ -44,3 +51,6 @@ string ControlShowFile::getFileName()
 {
        return OnlyFilename(filename_);
 }
+
+} // namespace frontend
+} // namespace lyx