Make getCurrentBookId const.

This commit is contained in:
Matthieu Gautier 2018-03-12 17:28:29 +01:00
parent cc38d0e5e4
commit 57a197d38d
2 changed files with 2 additions and 2 deletions

View File

@ -129,7 +129,7 @@ class Manager
*
* @return The id of the current book (or empty string if no current book).
*/
string getCurrentBookId();
string getCurrentBookId() const;
/**
* Set the path of the external fulltext index associated to a book.

View File

@ -243,7 +243,7 @@ bool Manager::setCurrentBookId(const string id)
return true;
}
string Manager::getCurrentBookId()
string Manager::getCurrentBookId() const
{
return library.current.empty() ? "" : library.current.top();
}