mirror of https://github.com/kiwix/libkiwix.git
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).
|
* @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.
|
* Set the path of the external fulltext index associated to a book.
|
||||||
|
|
|
@ -243,7 +243,7 @@ bool Manager::setCurrentBookId(const string id)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
string Manager::getCurrentBookId()
|
string Manager::getCurrentBookId() const
|
||||||
{
|
{
|
||||||
return library.current.empty() ? "" : library.current.top();
|
return library.current.empty() ? "" : library.current.top();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue