]> git.lyx.org Git - lyx.git/blobdiff - src/lyxvc.C
fix some C++ parsing bugs
[lyx.git] / src / lyxvc.C
index 595c9bb72ce1afc0fe2dfda5cda8c89e02abb6d7..ddf087580a90c681921398b4338cb6f5076be719 100644 (file)
@@ -1,9 +1,5 @@
 #include <config.h>
 
-#ifdef __GNUG__
-#pragma implementation
-#endif
-
 #include "lyxvc.h"
 #include "vc-backend.h"
 #include "debug.h"
 using std::endl;
 using std::pair;
 
+/* WARNING: Several of the vcs-> methods end up
+ * deleting this object via BufferView::reload() !
+ */
+
 LyXVC::LyXVC()
 {
        vcs = 0;
@@ -76,7 +76,7 @@ void LyXVC::buffer(Buffer * buf)
 void LyXVC::registrer()
 {
        string const filename = owner_->fileName();
+
        // there must be a file to save
        if (!IsFileReadable(filename)) {
                Alert::alert(_("File not saved"),
@@ -177,7 +177,6 @@ void LyXVC::checkOut()
        }
 
        vcs->checkOut();
-
 }