]> git.lyx.org Git - lyx.git/blobdiff - src/vc-backend.C
the spellcheck cleanup
[lyx.git] / src / vc-backend.C
index 46b8b6d55764461cce54c02d31e7c70948e1408e..414c8e4d9f27999afd24d80ace91dfef3116df33 100644 (file)
@@ -46,7 +46,7 @@ using std::gmtime;
 
 using std::endl;
 using std::getline;
-
+using std::string;
 using std::ifstream;
 
 
@@ -264,7 +264,7 @@ void CVS::scanMaster()
        string tmpf = "/" + OnlyFilename(file_) + "/";
        lyxerr[Debug::LYXVC] << "\tlooking for `" << tmpf << '\'' << endl;
        string line;
-       regex reg("/(.*)/(.*)/(.*)/(.*)/(.*)");
+       static regex const reg("/(.*)/(.*)/(.*)/(.*)/(.*)");
        while (getline(ifs, line)) {
                lyxerr[Debug::LYXVC] << "\t  line: " << line << endl;
                if (contains(line, tmpf)) {