LyXVC::LyXVC()
{
- owner_ = 0;
+ owner_ = nullptr;
}
}
// file is not under any VCS.
- vcs.reset(0);
+ vcs.reset(nullptr);
return false;
}
_("(no initial description)"));
if (!ok) {
LYXERR(Debug::LYXVC, "LyXVC: user cancelled");
- vcs.reset(0);
+ vcs.reset(nullptr);
return false;
}
if (response.empty())
if (!vcs)
return string();
//RCS allows checkOut only in ReadOnly mode
- if (vcs->toggleReadOnlyEnabled() && !owner_->isReadonly())
+ if (vcs->toggleReadOnlyEnabled() && !owner_->hasReadonlyFlag())
return string();
LYXERR(Debug::LYXVC, "LyXVC: checkOut");
}
case VCS::NOLOCKING:
Buffer * b = vcs->owner();
- bool const newstate = !b->isReadonly();
+ bool const newstate = !b->hasReadonlyFlag();
string result = "LyXVC: toggle to ";
result += (newstate ? "readonly" : "readwrite");
LYXERR(Debug::LYXVC, result);
{
return vcs && vcs->repoUpdateEnabled();
}
-
-
+
+
bool LyXVC::prepareFileRevision(string const & rev, std::string & f)
{
return vcs && vcs->prepareFileRevision(rev, f);