Added Library::addOrUpdateBook() alias

This commit is contained in:
Veloman Yunkan 2021-11-29 21:21:03 +04:00
parent 7161db8e2a
commit 405ea29900
1 changed files with 5 additions and 0 deletions

View File

@ -212,6 +212,11 @@ class Library : private LibraryBase
*/ */
bool addBook(const Book& book); bool addBook(const Book& book);
/**
* A self-explanatory alias for addBook()
*/
bool addOrUpdateBook(const Book& book) { return addBook(book); }
/** /**
* Add a bookmark to the library. * Add a bookmark to the library.
* *