mirror of
https://github.com/kiwix/libkiwix.git
synced 2025-08-03 10:16:03 -04:00
Make getCurrentBookId const.
This commit is contained in:
parent
cc38d0e5e4
commit
57a197d38d
@ -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.
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user