mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Constify some functions and correct a typo.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32688 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
8e95585bbd
commit
defc7ebac5
@ -226,7 +226,7 @@ void LyXVC::toggleReadOnly()
|
||||
}
|
||||
|
||||
|
||||
bool LyXVC::inUse()
|
||||
bool LyXVC::inUse() const
|
||||
{
|
||||
if (vcs)
|
||||
return true;
|
||||
@ -268,25 +268,25 @@ string const LyXVC::getLogFile() const
|
||||
}
|
||||
|
||||
|
||||
bool LyXVC::checkOutEnabled()
|
||||
bool LyXVC::checkOutEnabled() const
|
||||
{
|
||||
return vcs && vcs->checkOutEnabled();
|
||||
}
|
||||
|
||||
|
||||
bool LyXVC::checkInEnabled()
|
||||
bool LyXVC::checkInEnabled() const
|
||||
{
|
||||
return vcs && vcs->checkInEnabled();
|
||||
}
|
||||
|
||||
|
||||
bool LyXVC::lockingToggleEnabled()
|
||||
bool LyXVC::lockingToggleEnabled() const
|
||||
{
|
||||
return vcs && vcs->lockingToggleEnabled();
|
||||
}
|
||||
|
||||
|
||||
bool LyXVC::undoLastEnabled()
|
||||
bool LyXVC::undoLastEnabled() const
|
||||
{
|
||||
return vcs && vcs->undoLastEnabled();
|
||||
}
|
||||
|
14
src/LyXVC.h
14
src/LyXVC.h
@ -70,25 +70,25 @@ public:
|
||||
/// Unlock and commit changes. Returns log.
|
||||
std::string checkIn();
|
||||
/// Does the current VC supports this operation?
|
||||
bool checkInEnabled();
|
||||
bool checkInEnabled() const;
|
||||
|
||||
/// Lock/update and prepare to edit document. Returns log.
|
||||
std::string checkOut();
|
||||
/// Does the current VC supports this operation?
|
||||
bool checkOutEnabled();
|
||||
bool checkOutEnabled() const;
|
||||
|
||||
/// Synchronize the whole archive with repository
|
||||
std::string repoUpdate();
|
||||
/// Does the current VC supports this operation?
|
||||
bool repoUpdateEnabled();
|
||||
bool repoUpdateEnabled() const;
|
||||
|
||||
/**
|
||||
* Toggle locking property of the edited file,
|
||||
* i.e. whether the file uses locking mechanism.
|
||||
*/
|
||||
std::string lockingToggle();
|
||||
/// Does the current VC supports this operation?
|
||||
bool lockingToggleEnabled();
|
||||
/// Does the current VC support this operation?
|
||||
bool lockingToggleEnabled() const;
|
||||
|
||||
/// Revert to last version
|
||||
void revert();
|
||||
@ -96,7 +96,7 @@ public:
|
||||
/// Undo last check-in.
|
||||
void undoLast();
|
||||
/// Does the current VC supports this operation?
|
||||
bool undoLastEnabled();
|
||||
bool undoLastEnabled() const;
|
||||
|
||||
/**
|
||||
* Generate a log file and return the filename.
|
||||
@ -109,7 +109,7 @@ public:
|
||||
void toggleReadOnly();
|
||||
|
||||
/// Is the document under administration by VCS?
|
||||
bool inUse();
|
||||
bool inUse() const;
|
||||
|
||||
/// Returns the version number.
|
||||
//std::string const & version() const;
|
||||
|
Loading…
Reference in New Issue
Block a user