]> git.lyx.org Git - lyx.git/blobdiff - src/VCBackend.cpp
Avoid duplicating mode changing commands
[lyx.git] / src / VCBackend.cpp
index 6350766dac7e57ef324c31f055182bd244b9239b..2235c073f41e35527b7d3617034b61f5fbdae268 100644 (file)
@@ -31,6 +31,7 @@
 #include "support/TempFile.h"
 
 #include <fstream>
+#include <sstream>
 
 using namespace std;
 using namespace lyx::support;
@@ -566,6 +567,8 @@ void CVS::scanMaster()
                        // Ok extract the fields.
                        smatch sm;
 
+                       // false positive from coverity
+                       // coverity[CHECKED_RETURN]
                        regex_match(line, sm, reg);
 
                        //sm[0]; // whole matched string
@@ -2254,7 +2257,7 @@ bool GIT::prepareFileRevisionEnabled()
 
 bool GIT::toggleReadOnlyEnabled()
 {
-       return false;
+       return true;
 }