]> 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 093c4b7d8be8d8be41351b53f79af076f3bc0afd..6ffe52a18e805e2fce0a864e756a1829b106601f 100644 (file)
 #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