]> git.lyx.org Git - lyx.git/blobdiff - src/vc-backend.C
the spellcheck cleanup
[lyx.git] / src / vc-backend.C
index 4d7222152662a3e8152a9c9fd3d9bca911421bed..414c8e4d9f27999afd24d80ace91dfef3116df33 100644 (file)
@@ -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)) {