1
0
Fork 0
mirror of https://github.com/geometer/FBReaderJ.git synced 2025-10-03 17:59:33 +02:00

native code: synchronization with C++ version

This commit is contained in:
Nikolay Pultsin 2012-11-13 01:49:26 +04:00
parent 6fd4e1e98f
commit d93770c0f8
111 changed files with 804 additions and 697 deletions

View file

@ -32,7 +32,7 @@
FB2BookReader::FB2BookReader(BookModel &model) : myModelReader(model) {
myInsideCoverpage = false;
myParagraphsBeforeBodyNumber = (size_t)-1;
myParagraphsBeforeBodyNumber = (std::size_t)-1;
myInsidePoem = false;
mySectionDepth = 0;
myBodyCounter = 0;
@ -42,7 +42,7 @@ FB2BookReader::FB2BookReader(BookModel &model) : myModelReader(model) {
myInsideTitle = false;
}
void FB2BookReader::characterDataHandler(const char *text, size_t len) {
void FB2BookReader::characterDataHandler(const char *text, std::size_t len) {
if ((len > 0) && (!myCurrentImageId.empty() || myModelReader.paragraphIsOpen())) {
std::string str(text, len);
if (!myCurrentImageId.empty()) {