mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-06 03:50:19 +02:00
enum member renamed: READ_SOMETHING => READ_TITLE_INFO
This commit is contained in:
parent
aef32b160d
commit
0b0a8cabf5
2 changed files with 11 additions and 11 deletions
|
@ -66,25 +66,25 @@ void FB2MetaInfoReader::startElementHandler(int tag, const char **attributes) {
|
|||
interrupt();
|
||||
break;
|
||||
case _TITLE_INFO:
|
||||
myReadState = READ_SOMETHING;
|
||||
myReadState = READ_TITLE_INFO;
|
||||
break;
|
||||
case _BOOK_TITLE:
|
||||
if (myReadState == READ_SOMETHING) {
|
||||
if (myReadState == READ_TITLE_INFO) {
|
||||
myReadState = READ_TITLE;
|
||||
}
|
||||
break;
|
||||
case _GENRE:
|
||||
if (myReadState == READ_SOMETHING) {
|
||||
if (myReadState == READ_TITLE_INFO) {
|
||||
myReadState = READ_GENRE;
|
||||
}
|
||||
break;
|
||||
case _AUTHOR:
|
||||
if (myReadState == READ_SOMETHING) {
|
||||
if (myReadState == READ_TITLE_INFO) {
|
||||
myReadState = READ_AUTHOR;
|
||||
}
|
||||
break;
|
||||
case _LANG:
|
||||
if (myReadState == READ_SOMETHING) {
|
||||
if (myReadState == READ_TITLE_INFO) {
|
||||
myReadState = READ_LANGUAGE;
|
||||
}
|
||||
break;
|
||||
|
@ -104,7 +104,7 @@ void FB2MetaInfoReader::startElementHandler(int tag, const char **attributes) {
|
|||
}
|
||||
break;
|
||||
case _SEQUENCE:
|
||||
if (myReadState == READ_SOMETHING) {
|
||||
if (myReadState == READ_TITLE_INFO) {
|
||||
const char *name = attributeValue(attributes, "name");
|
||||
if (name != 0) {
|
||||
std::string seriesTitle = name;
|
||||
|
@ -128,7 +128,7 @@ void FB2MetaInfoReader::endElementHandler(int tag) {
|
|||
if (myReadState == READ_TITLE) {
|
||||
myBook.setTitle(myBuffer);
|
||||
myBuffer.erase();
|
||||
myReadState = READ_SOMETHING;
|
||||
myReadState = READ_TITLE_INFO;
|
||||
}
|
||||
break;
|
||||
case _GENRE:
|
||||
|
@ -146,7 +146,7 @@ void FB2MetaInfoReader::endElementHandler(int tag) {
|
|||
}
|
||||
myBuffer.erase();
|
||||
}
|
||||
myReadState = READ_SOMETHING;
|
||||
myReadState = READ_TITLE_INFO;
|
||||
}
|
||||
break;
|
||||
case _AUTHOR:
|
||||
|
@ -167,14 +167,14 @@ void FB2MetaInfoReader::endElementHandler(int tag) {
|
|||
myAuthorNames[0].erase();
|
||||
myAuthorNames[1].erase();
|
||||
myAuthorNames[2].erase();
|
||||
myReadState = READ_SOMETHING;
|
||||
myReadState = READ_TITLE_INFO;
|
||||
}
|
||||
break;
|
||||
case _LANG:
|
||||
if (myReadState == READ_LANGUAGE) {
|
||||
myBook.setLanguage(myBuffer);
|
||||
myBuffer.erase();
|
||||
myReadState = READ_SOMETHING;
|
||||
myReadState = READ_TITLE_INFO;
|
||||
}
|
||||
break;
|
||||
case _FIRST_NAME:
|
||||
|
|
|
@ -43,7 +43,7 @@ private:
|
|||
|
||||
enum {
|
||||
READ_NOTHING,
|
||||
READ_SOMETHING,
|
||||
READ_TITLE_INFO,
|
||||
READ_TITLE,
|
||||
READ_AUTHOR,
|
||||
READ_AUTHOR_NAME_0,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue